FlutterSignal<T>.lazy constructor

FlutterSignal<T>.lazy({
  1. bool autoDispose = false,
  2. String? debugLabel,
})

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,
}) : super.lazy();