GeneralButton class

Inheritance

Constructors

GeneralButton.new({Key? key, double height = 40, double? fontSize = 13, double? iconSize = 18, double radius = 5, double? width, EdgeInsetsGeometry? padding, Callback? onPressed, VoidCallback? onLongPress, ValueChanged<bool>? onHover, ValueChanged<bool>? onFocusChange, ButtonStyle? style, Color? textColor, FocusNode? focusNode, BorderRadius? borderRadius, BorderSide? borderSide, bool autofocus = false, bool iconInRight = false, bool disabled = false, WidgetStatesController? statesController, bool showLoading = true, Widget? child, IconData? icon, required String label, bool fade = false, bool flat = false, bool reverse = false, Color? color, FontWeight? fontWeight})
const

Properties

autofocus bool
final
borderRadius BorderRadius?
final
borderSide BorderSide?
final
child Widget?
final
color Color?
final
disabled bool
final
fade bool
final
flat bool
final
focusNode FocusNode?
final
fontSize double?
final
fontWeight FontWeight?
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
icon IconData?
final
iconInRight bool
final
iconSize double?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
final
onFocusChange ValueChanged<bool>?
final
onHover ValueChanged<bool>?
final
onLongPress VoidCallback?
final
onPressed Callback?
final
padding EdgeInsetsGeometry?
final
radius double
final
reverse bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLoading bool
final
statesController WidgetStatesController?
final
style ButtonStyle?
final
textColor Color?
final
width double?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<GeneralButton>
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, int wrapWidth = 65}) 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