start method

  1. @override
FutureOr<bool> start()
override

The start operation.

Implementation

@override
FutureOr<bool> start() {
  if (isStarted) {
    throw StateError("Already started!");
  } else if (isStarting) {
    throw StateError("Already starting!");
  }

  return startImpl();
}