start method

  1. @override
void start([
  1. bool resume = true
])
override

Start this controller and if resume is true, resume data collection according to the parameters specified in configure.

configure must be called before starting sampling.

Implementation

@override
void start([bool resume = true]) {
  assert(
      _executor != null,
      '$runtimeType - Cannot resume this controller, since the the runtime is not initialized. '
      'Call the configure() method first.');

  info('$runtimeType - Starting data sampling...');
  super.start();
  if (resume) executor!.resume();
}