CouponCard class
Provides a coupon card widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CouponCard
Constructors
- CouponCard({Key? key, required Widget firstChild, required Widget secondChild, double? width, double height = 150, double borderRadius = 8, double curveRadius = 20, double curvePosition = 100, Axis curveAxis = Axis.horizontal, bool clockwise = false, Color? backgroundColor, Decoration? decoration, Shadow? shadow, BorderSide? border})
-
Creates a vertical coupon card widget that takes two children
with the properties that defines the shape of the card.
const
Properties
- backgroundColor → Color?
-
The background color value.
final
- border → BorderSide?
-
A custom border applied to the widget.
final
- borderRadius → double
-
Border radius value.
final
- clockwise → bool
-
If
false
(by default), then the border radius will be drawn inside the child, otherwise outside.final - curveAxis → Axis
-
The direction of the curve, whether it's set vertically or
horizontally.
final
- curvePosition → double
-
The curve position, which specifies the curve position depending
on the its child's size.
final
- curveRadius → double
-
The curve radius value, which specifies its size.
final
- decoration → Decoration?
-
The decoration of the entire widget
final
- firstChild → Widget
-
The small child or first.
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondChild → Widget
-
The big child or second.
final
- shadow → Shadow?
-
A shadow applied to the widget.
final
- width → double?
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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