onRegister method

  1. @override
void onRegister()
override

Callback method when this package is being registered.

Implementation

@override
void onRegister() {
  FromJsonFactory().registerAll([
    HealthService(),
    HealthSamplingConfiguration(healthDataTypes: []),
    HealthData('', NumericHealthValue(numericValue: 6), '', '',
        DateTime.now(), DateTime.now(), '', '', '', ''),
  ]);
}