ListenableProvider<T extends Listenable>.value constructor

ListenableProvider<T extends Listenable>.value({Key key, @required T value, Widget child })

Provides an existing Listenable.

Implementation

ListenableProvider.value({
  Key key,
  @required T value,
  Widget child,
}) : this._(
        key: key,
        delegate: _ValueListenableDelegate(value),
        child: child,
      );