isSupportFlashlight method

  1. @override
Future<bool> isSupportFlashlight()

Check if the device supports flashlight.
Return true if the device supports flashlight. Otherwise, this function returns false.

Implementation

@override
Future<bool> isSupportFlashlight() async {
  return await methodChannel
      .invokeMethod<bool>('isSupportFlashlight')
      .then<bool>((bool? value) => value ?? false);
}