ResponsiveCardConfig class

A class for configuring a responsive card based on the size of the parent container.

This class helps in adapting the size of a card and its children based on the dimensions of the parent container. You can set the current dimensions of the parent and the target dimensions that you want the card to adapt to.

Constructors

ResponsiveCardConfig()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init({required double currentParentWidth, required double currentParentHeight, double targetParentWidth = 300, double targetParentHeight = 400}) → void
Initializes the configuration for a responsive card.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

currentParentHeightValue double
The current height of the parent container.
getter/setter pair
currentParentWidthValue double
The current width of the parent container.
getter/setter pair
targetParentHeightValue double
The target height of the card, which the responsive card should adapt to.
getter/setter pair
targetParentWidthValue double
The target width of the card, which the responsive card should adapt to.
getter/setter pair