toggleFlash method

Future toggleFlash ()

Toggle camera flash.

Implementation

toggleFlash() async {
  bool flash = isOpenFlash;
  this._isOpenFlash = !flash;
  _methodChannel.invokeMethod("toggleFlash");
}