value<T> static method

T? value<T>(
  1. String name
)

Implementation

static T? value<T>(String name) {
  final notifier = of(name);
  final value = notifier.args;
  if (value is T) return value;
  return null;
}