FHeaderAction.x constructor

FHeaderAction.x({
  1. required VoidCallback? onPress,
  2. FHeaderActionStyle? style,
  3. bool autofocus = false,
  4. FocusNode? focusNode,
  5. ValueChanged<bool>? onFocusChange,
  6. Key? key,
})

Creates a FHeaderAction with FAssets.icons.x.

Implementation

factory FHeaderAction.x({
  required VoidCallback? onPress,
  FHeaderActionStyle? style,
  bool autofocus = false,
  FocusNode? focusNode,
  ValueChanged<bool>? onFocusChange,
  Key? key,
}) =>
    FHeaderAction(
      icon: FIcon(FAssets.icons.x),
      onPress: onPress,
      style: style,
      autofocus: autofocus,
      focusNode: focusNode,
      onFocusChange: onFocusChange,
      key: key,
    );