FlutterSignal<T>.lazy constructor

FlutterSignal<T>.lazy({
  1. bool autoDispose = false,
  2. String? debugLabel,
  3. 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.autoDispose,
  super.debugLabel,
  this.runCallbackOnListen = false,
}) : super.lazy();