future<T> static method

ServiceWidget<FutureService<T>> future<T>(
  1. Future<T> future, {
  2. T? initialValue,
})

Implementation

static ServiceWidget<FutureService<T>> future<T>(Future<T> future,
        {T? initialValue}) =>
    ServiceWidget(
        init: (widget) => FutureService(widget,
            future: future, initialValue: initialValue));