ArnaBaseWidgetBuilder typedef

ArnaBaseWidgetBuilder = Widget Function(BuildContext context, bool enabled, bool hover, bool focused, bool pressed, bool selected)

The base widget builder which grants interactive states to widgets.

Implementation

typedef ArnaBaseWidgetBuilder = Widget Function(
  /// A handle to the location of a widget in the widget tree.
  BuildContext context,

  /// The state when this widget is enabled and can be interacted with.
  bool enabled,

  /// The state when the user drags their mouse cursor over the given widget.
  bool hover,

  /// The state when the user navigates with the keyboard to a given widget.
  bool focused,

  /// The state when the user is actively pressing down on the given widget.
  bool pressed,

  /// The state when this item has been selected.
  bool selected,
);