getSupportedFlashModes method

Future<List<String>> getSupportedFlashModes()

Gets the supported flash modes.

Empty if flash mode setting is not supported.

Implementation

Future<List<String>> getSupportedFlashModes() async {
  final List<Object?> modes =
      await _channel.$getSupportedFlashModes(this) as List<Object?>;
  return modes.cast<String>();
}