valueNotifier property

ValueNotifier<T> get valueNotifier

Implementation

ValueNotifier<T> get valueNotifier{
  assert((){
    if(control == null && (formGroup == null || name == null)){
      throw FlutterError('ControlValueAcessor: model or formGroup and name must be provided to access Value Notifier');
    }
    return true;
  }());
  if(control != null) return control!.valueNotifier;
  return formGroup!.control<T>(name!).valueNotifier;
}