MoamalatButton class
Custom Button class
Custom button class have many customize options. We use it where we need button function with customize text, on tap functions, either fill or outlined button, and only text or icon with text button.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MoamalatButton
Constructors
- MoamalatButton({Key? key, String text = "Pay", dynamic tapValidation()?, bool padding = false, bool forceTap = false, Color? btnColor, bool active = true, bool? outLined = false, double? width, double bottomPadding = 0, double? height, Color? btnTxtColor, FontWeight? btnTextFontWeight, double? btnTextFontSize, double? borderRadius, int? maxLines, required String merchantID, required String secretKey, required String merchantReference, required String terminalID, required String environmentBaseURL, required String amount, required dynamic messageCallBack(String val)?, required dynamic errorCallBack(String val)?, String? time = ""})
Properties
- active → bool
-
final
- amount → String
-
final
- borderRadius → double?
-
final
- bottomPadding → double
-
final
- btnColor → Color?
-
final
- btnTextFontSize → double?
-
final
- btnTextFontWeight → FontWeight?
-
final
- btnTxtColor → Color?
-
final
- environmentBaseURL → String
-
final
- errorCallBack → dynamic Function(String val)?
-
final
- forceTap → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxLines → int?
-
final
- merchantID → String
-
final
- merchantReference → String
-
final
- messageCallBack → dynamic Function(String val)?
-
final
- outLined → bool?
-
final
- padding → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretKey → String
-
final
- tapValidation → dynamic Function()?
-
final
- terminalID → String
-
final
- text → String
-
final
- time ↔ String?
-
latefinal
- width → double?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MoamalatButton> -
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