startForegroundService method

  1. @override
Future<bool?> startForegroundService(
  1. String title,
  2. String content
)
override

Starts the keep-alive foreground service.

Implementation

@override
Future<bool?> startForegroundService(String title, String content) =>
    methodChannel.invokeMethod<bool>(
        'startForegroundService', {'title': title, 'content': content});