MihrButtonBase constructor
const
MihrButtonBase({
- required VoidCallback? onPressed,
- required Widget child,
- Key? key,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- ButtonStyle styleBuilder(
- ButtonStyle resolved
- FocusNode? focusNode,
- bool autofocus = false,
- WidgetStatesController? statesController,
- Widget? leadingIcon,
- Widget? trailingIcon,
- String? tooltip,
Creates a Mihr button with the given callbacks and content.
Implementation
const MihrButtonBase({
required this.onPressed,
required this.child,
super.key,
this.onLongPress,
this.onHover,
this.onFocusChange,
this.style,
this.styleBuilder,
this.focusNode,
this.autofocus = false,
this.statesController,
this.leadingIcon,
this.trailingIcon,
this.tooltip,
}) : assert(
style == null || styleBuilder == null,
'Cannot set both style and styleBuilder on a Mihr button.',
);