MorphGlassOptics class
The refraction tuning UIKit gives a liquid lens.
A resting lens bends what is behind it by unliftedDisplacement and blurs it by unliftedBlurRadius; a lifted one bends by liftedDisplacement without blur. The values are UIKit's own, read from its lens configuration; a MorphGlassPainter that refracts can interpolate them by lift with displacementAt and blurRadiusAt.
- Annotations
Constructors
Properties
- contentWrapperDisplacement → double
-
The displacement of the content seen through the lens, in pixels.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerShadowOffsetY → double
-
The vertical offset of the lens's inner shadow, in pixels.
final
- innerShadowOpacity → double
-
The opacity of the lens's inner shadow.
final
- innerShadowRadius → double
-
The blur radius of the lens's inner shadow, in pixels.
final
- liftedDisplacement → double
-
The refraction displacement of the lifted lens, in pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unliftedBlurRadius → double
-
The blur radius of the resting lens, in pixels.
final
- unliftedDisplacement → double
-
The refraction displacement of the resting lens, in pixels.
final
Methods
-
blurRadiusAt(
double lift) → double -
The blur radius at
lift, 0 resting and 1 lifted. -
displacementAt(
double lift) → double -
The refraction displacement at
lift, 0 resting and 1 lifted. -
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
Constants
- large → const MorphGlassOptics
- The optics of the large lens, which rests clear.
- small → const MorphGlassOptics
- The optics of the small lens, which rests frosted.