TargetRectGetter class

獲取target的高亮區塊

Constructors

TargetRectGetter({required FocusTarget target, required TickerProvider animationVsync, required ValueChanged<FocusRect> onRectGet, required Duration defaultAnimationDuration, required FocusAnimationType defaultAnimationType, required Curve defaultAnimationCurve, bool rootOverlay = false})

Properties

animationType FocusAnimationType
鎖定目標的方式, 預設為FocusAnimationType.targetCenter
final
descProgress double
desc的顯示進度
no setter
displayRect RRect?
顯示的rect
no setter
hashCode int
The hash code for this object.
no setterinherited
onRectGet ValueChanged<FocusRect>
final
oriRect RRect?
原始Rect
no setter
progress double
顯示進度
no setter
rootOverlay bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenSize Size?
getter/setter pair
target FocusTarget
final

Methods

dispose() → void
endRect({bool withAnimation = true, FocusAnimationType? nextAnimationType}) TickerFuture
結束展示 nextAnimationType 結束展示後, 下一個過度動畫的類型
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