shouldShowTorchControl property

bool get shouldShowTorchControl

Indicates whether the torch control button should be shown to the user.

Default is false.

Added in version 7.1.0

Implementation

bool get shouldShowTorchControl => _shouldShowTorchControl;
set shouldShowTorchControl (bool newValue)

Indicates whether the torch control button should be shown to the user.

Default is false.

Added in version 7.1.0

Implementation

set shouldShowTorchControl(bool newValue) {
  _shouldShowTorchControl = newValue;
  _updateNative();
}