startForegroundService method

  1. @override
Future<void> startForegroundService()
override

Starts foreground service for background torch operation (Android only). Required for torch to continue working when app is in background.

Implementation

@override
Future<void> startForegroundService() async {
  // Foreground service is Android-specific, no-op on web
}