AwesomeCameraSwitchButton constructor
AwesomeCameraSwitchButton({
- Key? key,
- required CameraState state,
- AwesomeTheme? theme,
- Widget iconBuilder()?,
- void onSwitchTap()?,
- double scale = 1.3,
Implementation
AwesomeCameraSwitchButton({
super.key,
required this.state,
this.theme,
Widget Function()? iconBuilder,
void Function(CameraState)? onSwitchTap,
double scale = 1.3,
}) : iconBuilder = iconBuilder ??
(() {
return AwesomeCircleWidget.icon(
theme: theme,
icon: Icons.cameraswitch,
scale: scale,
);
}),
onSwitchTap = onSwitchTap ?? ((state) => state.switchCameraSensor());