create<T extends Object> static method
IScope<T>
create<T extends Object>({
- required Create<
T> create, - Update<
T> ? update, - Dispose<
T> ? dispose, - TransitionBuilder? builder,
- Widget? child,
- UpdateShouldNotify<
T> ? shouldNotify, - Key? key,
Creates a value, then expose it to its descendants.
The value will be disposed of when Scope is removed from the Element tree.
Implementation
@factory
static IScope<T> create<T extends Object>({
required Create<T> create,
Update<T>? update,
Dispose<T>? dispose,
TransitionBuilder? builder,
Widget? child,
UpdateShouldNotify<T>? shouldNotify,
Key? key,
}) =>
CreateScope<T>(
create,
update,
dispose,
builder,
child,
shouldNotify,
key,
);