state<T extends ValueNotifier> method

T state<T extends ValueNotifier>(
  1. String key, [
  2. dynamic value
])

Implementation

T state<T extends ValueNotifier>(String key, [dynamic value]) {
  if(value != null){
    this[key] = value;
  }
  return _values[key] as T;
}