BASFButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BASFButton
Constructors
- BASFButton({Key? key, String? text, required VoidCallback? onPressed, required Color color, double? width = 48, bool expand = false, double? height = 48, EdgeInsets? padding, EdgeInsets? margin, IconData? leadingIcon, IconData? trailingIcon, IconData? iconOnly, bool negative = false})
-
const
Properties
- color → Color
-
The main color of the button.
final
- expand → bool
-
Expand the Button in the width.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The height of the button.
final
- iconOnly → IconData?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leadingIcon → IconData?
-
final
- margin → EdgeInsets?
-
This is the margin around the Button.
final
- negative → bool
-
Swap the colors of the button. For instance for more contrast.
final
- onPressed → VoidCallback?
-
If this function is not set, the appearance of the button might be bad.
final
- padding → EdgeInsets?
-
This is the padding around the child.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
Use this to show text on the button directly.
final
- trailingIcon → IconData?
-
final
- width → double?
-
The minimum width of the button.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< BASFButton> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited