flashOnLevel method

  1. @override
void flashOnLevel({
  1. required double strengthLevel,
})
override

flashOnLevel device Torch(FlashLight) 'ON' with control strengthLevel(torch level)

Android : Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU IOS : iOS > 11.4

usage

  • Torch.instance.flashOnLevel(strengthLevel: double)

Implementation

@override
void flashOnLevel({required double strengthLevel}) {
  TorchxPlatform.instance.flashOnLevel(strengthLevel: strengthLevel);
}