startForegroundService method

Future<void> startForegroundService(
  1. NEForegroundServiceConfig? config
)

start foreground service

Implementation

Future<void> startForegroundService(NEForegroundServiceConfig? config) async {
  Map map = buildArguments();
  map['config'] = config?._toMap();
  return await _methodChannel.invokeMethod('startForegroundService', map);
}