FHeaderAction.x constructor

FHeaderAction.x({
  1. required VoidCallback? onPress,
  2. FHeaderActionStyle? style,
  3. Key? key,
})

Creates a FHeaderAction with FAssets.icons.x.

Implementation

factory FHeaderAction.x({
  required VoidCallback? onPress,
  FHeaderActionStyle? style,
  Key? key,
}) =>
    FHeaderAction(
      icon: FIcon(FAssets.icons.x),
      onPress: onPress,
      style: style,
      key: key,
    );