UserSwitchingLockButton constructor
const
UserSwitchingLockButton({
- Key? key,
- required String currentMerchantId,
- required dynamic onBeforeSwitch(),
- required void onUserClockedIn(
- BuildContext context,
- UserSwitchingResult result
- required dynamic onLogout(
- BuildContext context
- IconData icon = Icons.groups_outlined,
- Color? iconColor,
- double iconSize = 24,
- String tooltip = 'Switch User',
- bool disabled = false,
- dynamic disabledOnTap(
- BuildContext context
Implementation
const UserSwitchingLockButton({
super.key,
required this.currentMerchantId,
required this.onBeforeSwitch,
required this.onUserClockedIn,
required this.onLogout,
this.icon = Icons.groups_outlined,
this.iconColor,
this.iconSize = 24,
this.tooltip = 'Switch User',
this.disabled = false,
this.disabledOnTap,
});