toggleTorch abstract method

Future<void> toggleTorch({
  1. required bool enabled,
})

Can enable or disable the flash if available

Implementation

Future<void> toggleTorch({required bool enabled});