SnapComponentWithOffsetFraction class
Represents a snap component with a size and an fraction, where the fraction is a fraction of viewport.
- Inheritance
-
- Object
- SnapComponent
- SnapComponentWithOffsetFraction
Constructors
- SnapComponentWithOffsetFraction({required Components component, double fraction = 0.0, double size = 1.0})
-
Represents a snap component with a size and an fraction, where the fraction is a fraction of viewport.
const
Properties
- component → Components
-
final
- fraction → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
final
Methods
-
getComponentOffsetFromTop<
T> (MultiStateSheetExtent< T> extent, Components component) → double -
Gets the offset of the specified component from the top of viewport.
inherited
-
getComponentSize<
T> (MultiStateSheetExtent< T> extent, Components component) → double -
Gets the base size of the specified component relative to the extent's initial configuration.
inherited
-
getSize<
T> (MultiStateSheetExtent< T> extent) → double -
Calculates the size of the snap component relative to the provided extent.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited