FlutterSignal<T>.lazy constructor
FlutterSignal<T>.lazy ({
- SignalOptions<
T> ? options, - @Deprecated('Use options: SignalOptions(autoDispose: ...) instead') bool? autoDispose,
- @Deprecated('Use options: SignalOptions(name: ...) instead') String? debugLabel,
- bool runCallbackOnListen = false,
Lazy signal that can be created with type T that the value will be assigned later.
final db = FlutterSignal.lazy<DatabaseConnection>();
...
db.value = DatabaseConnect(...);
Implementation
FlutterSignal.lazy({
super.options,
@Deprecated('Use options: SignalOptions(autoDispose: ...) instead')
super.autoDispose,
@Deprecated('Use options: SignalOptions(name: ...) instead')
super.debugLabel,
this.runCallbackOnListen = false,
}) : super.lazy();