toInlineStyle method

String toInlineStyle()

Returns the CSS animation shorthand value formatted for an inline style attribute.

Implementation

String toInlineStyle() {
  final iterStr = iterations == -1 ? 'infinite' : '$iterations';
  return 'animation:$name ${duration.inMilliseconds}ms $easing ${delay.inMilliseconds}ms $iterStr $direction $fillMode';
}