getCapabilities method
Returns the capabilities of the torch on the current platform.
Implementation
@override
Future<TorchCapabilities> getCapabilities() async {
// Web doesn't support hardware torch access
return const TorchCapabilities(
supportsStrength: false,
supportsBlinking: false,
supportsBackground: false,
supportsFade: false,
supportsSOS: false,
supportsCustomBlink: false,
);
}