state property

  1. @protected
State state
inherited

The value currently exposed by this Notifier.

Invoking the setter will notify listeners if updateShouldNotify returns true. By default, this will compare the previous and new value using identical.

Reading state if the provider is out of date (such as if one of its dependency has changed) will trigger Notifier.build to be re-executed.

If Notifier.build threw, reading state will rethow the exception.

Implementation

@protected
State get state {
  _element.flush();
  // ignore: invalid_use_of_protected_member
  return _element.requireState;
}
void state=(State value)
inherited

Implementation

set state(State value) {
  // ignore: invalid_use_of_protected_member
  _element.setState(value);
}