RouterConfigBuilder

Introduction

The RouterConfigBuilder class is designed to facilitate the construction of material.RouterConfig<Object> elements in a Flutter application. This class extends the ElementBuilder class, providing a streamlined approach to building router configurations based on the application's requirements.

Class Definition

class RouterConfigBuilder extends ElementBuilder<material.RouterConfig<Object>> {
  RouterConfigBuilder(Application application) : super(application);

  @override
  material.RouterConfig<Object> build(Element element) {
    return application.make<RouterConfigBuilder>(element.type).build(element);
  }
}

Last updated