WidgetBuilder

Introduction

The WidgetBuilder class is a crucial component designed to facilitate the building of material.Widget elements in a Flutter application. This class extends the ElementBuilder class, providing a streamlined approach to constructing widgets based on the application's requirements.

Class Definition

class WidgetBuilder extends ElementBuilder<material.Widget> {
  WidgetBuilder(Application application) : super(application);

  @override
  material.Widget build(Element element) {
    return application
        .make<WidgetBuilder>(element.type)
        .build(Element.fromJson(element.data));
  }
}

Last updated