DualExpandingArcLoader class

DualExpandingArcLoader is a custom loader widget that displays two rotating arcs that gradually expand until they complete a full circle. It supports custom colors, sizes, stroke widths, and animation durations for rotation and expansion.

Parameters:

  • size: The size (width and height) of the loader widget. Must be greater than 0.
  • strokeWidth: The thickness of the arc stroke. Must be greater than 0 and less than size/3.
  • innerColor: The color of the inner arc.
  • outerColor: The color of the outer arc.
  • rotationDurationMs: Duration of a complete rotation cycle, in milliseconds. Must be at least 500 ms.
  • animationDurationMs: Duration for the arcs to expand from a small segment to a full circle, in milliseconds. Must be at least 1000 ms.

Example Usage:

DualExpandingArcLoader(
  size: 48.0,
  strokeWidth: 5.0,
  innerColor: Colors.white,
  outerColor: Colors.red,
  rotationDurationMs: 1000,
  animationDurationMs: 2000,
)

Assertions:

  • size: Must be greater than 0.
  • strokeWidth: Must be greater than 0 and less than size / 3.
  • rotationDurationMs: Must be at least 500 milliseconds.
  • animationDurationMs: Must be at least 1000 milliseconds.
Inheritance

Constructors

DualExpandingArcLoader({Key? key, double size = 48.0, double strokeWidth = 5.0, Color innerColor = Colors.white, Color outerColor = Colors.red, int rotationDurationMs = 1000, int animationDurationMs = 2000})
const

Properties

animationDurationMs int
final
hashCode int
The hash code for this object.
no setterinherited
innerColor Color
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
outerColor Color
final
rotationDurationMs int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
final
strokeWidth double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DualExpandingArcLoader>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited