BloomKeyframe class
A single keyframe stop in a CSS animation at a normalized offset (0.0 to 1.0).
Defines the CSS declarations applied at a specific percentage point in the animation timeline.
An offset of 0.0 corresponds to 0% (from) and 1.0 corresponds to 100% (to).
const stop = BloomKeyframe(
offset: 0.5,
styles: {'opacity': '0.5', 'transform': 'scale(1.1)'},
);
Constructors
-
BloomKeyframe({required double offset, required Map<
String, String> styles}) -
Creates a keyframe stop at
offsetwith the specifiedstyles.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- offset → double
-
Normalized position in the animation cycle (0.0 =
0%, 1.0 =100%).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
styles
→ Map<
String, String> -
Map of CSS property names to values active at this keyframe (e.g.
{'opacity': '0'}).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCssBlock(
) → String -
Returns the formatted keyframe CSS block (e.g.
'0%{opacity:0;transform:scale(0.8)}'). -
toCssPercent(
) → String -
Returns the CSS percentage string representation (e.g.
'50%'for offset0.5). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited