OudsTopBarActionConfig.avatar constructor

OudsTopBarActionConfig.avatar({
  1. required OudsTopAppBarAvatarConfig avatarConfig,
  2. VoidCallback? onActionPressed,
  3. String? contentDescription,
})

Creates a configuration for an avatar action.

This is only applied on Material and will be ignored on iOS.

Implementation

factory OudsTopBarActionConfig.avatar({
  required OudsTopAppBarAvatarConfig avatarConfig,
  VoidCallback? onActionPressed,
  String? contentDescription,
}) {
  return OudsTopBarActionConfig._(
    type: OudsTopBarActionType.avatar,
    avatarConfig: avatarConfig,
    onActionPressed: onActionPressed,
    contentDescription: contentDescription,
  );
}