LayoutConfig class
A configuration object for CardAnimation used to determine the number of cards used in the animation
Constructors
- LayoutConfig({int cardsAfter = 1, int cardsBefore = 1, bool usesInvertedLayout = false})
- A configuration object for CardAnimation used to determine the number of cards used in the animation cardsAfter the required cards after the current used in the animation cardsBefore the required cards before the current used in the animation
Properties
- cardsAfter → int
-
The number of cards after the current card
final
- cardsBefore → int
-
The number of cards before the current card
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usesInvertedLayout ↔ bool
-
Animations can opt in to support 2 types of animations the either incrementally pile or removes from a pile
When false cards are layed out inside a Stack widget like this:
Previous, Current, Next
otherwise will be stack in the following manner:Next, Current, Previous
Also note that for the index 0 Previous will not be shown.getter/setter pair
Methods
-
indicesForLayout(
{required int currentIndex, required int cardCount}) → List< int> - returns a list of absolute indices from current card index as specified by cardsAfter and cardsBefore
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
relativeIndicesForLayout(
{required int cardCount}) → List< int> - returns a list of relative indices from current card index as specified by cardsAfter and cardsBefore
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited