run method

  1. @override
void run()
override

Manually runs the effect function.

This marks the effect dirty and executes it with dependency tracking. Calling run after disposal fails in debug builds.

Implementation

@override
void run() {
  assert(
    raw.flags != ReactiveFlags.none,
    'Cannot call run() on a disposed $runtimeType',
  );
  if (raw.flags != ReactiveFlags.none) {
    raw.flags |= ReactiveFlags.dirty;
  }
  raw.run();
}