ServiceBuilder<T extends Service> constructor
const
ServiceBuilder<T extends Service> ({
- Key? key,
- required ServiceFactory<
T> factory, - required ServiceWidgetBuilder<
T> builder,
Creates a ServiceBuilder that manages a Service instance.
The factory must not be null and is used to create the service.
The builder must not be null and is used to build the UI using the service.
Implementation
const ServiceBuilder({
super.key,
required this.factory,
required this.builder,
});