SnapComponentAtPosition class

Represents a snap component that stops at a specific pixel position in the MultiStateSheet.

Inheritance

Constructors

SnapComponentAtPosition({required Components component, required double position})
Represents a snap component that stops at a specific pixel position in the MultiStateSheet.
const

Properties

component Components
final
hashCode int
The hash code for this object.
no setterinherited
position double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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