onInitialize method

  1. @override
void onInitialize(
  1. ESenseDevice configuration
)
override

Callback on initialize.

Is to be overridden in sub-classes. Note, however, that it must not be doing a lot of work on startup.

Implementation

@override
void onInitialize(ESenseDevice configuration) {
  if (configuration.deviceName == null || configuration.deviceName!.isEmpty) {
    warning(
        '$runtimeType - cannot connect to eSense device, device name is null.');
  }
  manager = ESenseManager(id);

  super.onInitialize(configuration);
}