UserSwitchingLockButton constructor

const UserSwitchingLockButton({
  1. Key? key,
  2. required String currentMerchantId,
  3. required dynamic onBeforeSwitch(),
  4. required void onUserClockedIn(
    1. BuildContext context,
    2. UserSwitchingResult result
    ),
  5. required dynamic onLogout(
    1. BuildContext context
    ),
  6. IconData icon = Icons.groups_outlined,
  7. Color? iconColor,
  8. double iconSize = 24,
  9. String tooltip = 'Switch User',
  10. bool disabled = false,
  11. dynamic disabledOnTap(
    1. 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,
});