initialize method
This call is required if you wish to use the WorkManager plugin. callbackDispatcher is a top level function which will be invoked by Android isInDebugMode true will post debug notifications with information about when a job should have run
Implementation
static Future<void> initialize(
final Function callbackDispatcher, {
final bool isInDebugMode,
}) async {
Workmanager._isInDebugMode = isInDebugMode;
final callback = PluginUtilities.getCallbackHandle(callbackDispatcher);
await _foregroundChannel.invokeMethod('initialize', callback.toRawHandle());
}