FutureOrController<T> constructor
FutureOrController<T> ([
- _CallbackList<
T> callbacks = const []
Factory constructor to create a FutureOrController with optional callbacks.
Implementation
factory FutureOrController([_CallbackList<T> callbacks = const []]) {
final instance = FutureOrController<T>._();
instance.addAll(callbacks);
return instance;
}