SeniorCard class

Inheritance

Constructors

SeniorCard({Key? key, CardCheckboxConfig? checkboxConfig, required Widget child, bool disabled = false, CardDismissibleConfig? dismissibleConfig, double? height, CardHighLightBorder? highLightBorder, IconData? leftIcon, Color? leftIconColor, EdgeInsets? margin, VoidCallback? onTap, VoidCallback? onLongPress, bool outlined = false, EdgeInsets? padding, IconData? rightIcon, Color? rightIconColor, SeniorCardStyle? style, double? width, bool withElevation = false, bool withQuotes = false})
Creates the SDS card component. The parameter child is required.
const

Properties

checkboxConfig CardCheckboxConfig?
The information to add a checkbox to the card.
final
child Widget
The contents of the card.
final
disabled bool
Whether the card will be disabled. The default value is false.
final
dismissibleConfig CardDismissibleConfig?
The information to add the dismissible behavior to the card. Allows you to dismiss the card and perform an action when dragged from left to right or right to left.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The card height.
final
highLightBorder CardHighLightBorder?
Highlight border settings on card. Allows you to add an accent color to the left or below the edge of the card.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftIcon IconData?
An icon that will appear to the left of the content.
final
leftIconColor Color?
The color of the icon to the left of the content.
final
margin EdgeInsets?
The card margin. The default value is SeniorSpacing.xxsmall (4 logical pixels) on all sides.
final
onLongPress VoidCallback?
Callback function that will be executed when a long press occurs.
final
onTap VoidCallback?
Callback function that will be executed when the card is played.
final
outlined bool
Defines the border color of the card. The default value is false.
final
padding EdgeInsets?
The card padding. The default value is SeniorSpacing.small (12 logical pixels) on all sides.
final
rightIcon IconData?
An icon that will appear to the right of the content.
final
rightIconColor Color?
The color of the icon to the right of the content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style SeniorCardStyle?
The style definitions for the component. Allows you to configure: SeniorCardStyle.backgroundColor the card's background color. SeniorCardStyle.disabledBackgroundColor the card's background color when it's disabled. SeniorCardStyle.iconColor the color of the card's icon. SeniorCardStyle.quotesColor the color of quotes characters.
final
width double?
The card width.
final
withElevation bool
Whether the card will have an elevation. The default value is false.
final
withQuotes bool
Whether the card will wrap its content with quotes characters. The default value is false.
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