torchModesSupported method

Future<List<int>> torchModesSupported(
  1. List<int> modes
)

Returns a subset of values that indicate whether the device supports the specified torch modes.

Implementation

Future<List<int>> torchModesSupported(List<int> modes) async {
  final List<Object?> supportedModes =
      await _channel.$torchModesSupported(this, modes) as List<Object?>;
  return supportedModes.cast<int>();
}