update method

  1. @override
  2. @mustCallSuper
void update([
  1. covariant Function? callback
])
inherited

Executes callback, and notifies the listeners about the update.

If callback is provided, it will be executed before notifying the listeners. If callback is not provided, an empty function will be executed.

Implementation

@override
@mustCallSuper
void update([Function? callback]) {
  return super.update(callback ?? () {});
}