onInitialize method
Callback when this executor is initialized. Returns true if successfully initialized, false otherwise.
Note that this is a non-async method and should hence be 'light-weight' and not block execution for a long duration.
Implementation
@override
bool onInitialize() {
if (samplingConfiguration is LocationSamplingConfiguration) {
_configuration = samplingConfiguration as LocationSamplingConfiguration;
}
return super.onInitialize();
}