GrockShimmer class

Grock Shimmer is a widget that provides a shimmer effect to its child.

Inheritance
Available Extensions

Constructors

GrockShimmer({Key? key, required Widget child, Duration duration = const Duration(seconds: 2), Color color = Colors.grey, Axis direction = Axis.horizontal, Gradient? gradient, double opacity = 0.5, Curve curve = Curves.linear, BorderRadius? borderRadius, BorderRadiusGeometry? borderRadiusGeometry, BorderRadiusDirectional? borderRadiusDirectional, BorderRadiusGeometry? borderRadiusGeometryDirectional, BorderRadius? borderRadiusAll, BorderRadiusGeometry? borderRadiusGeometryAll, BorderRadiusDirectional? borderRadiusDirectionalAll, BorderRadiusGeometry? borderRadiusGeometryDirectionalAll, BorderRadius? borderRadiusOnlyTopLeft, BorderRadiusGeometry? borderRadiusGeometryOnlyTopLeft, BorderRadiusDirectional? borderRadiusDirectionalOnlyTopLeft, BorderRadiusGeometry? borderRadiusGeometryDirectionalOnlyTopLeft, BorderRadius? borderRadiusOnlyTopRight, BorderRadiusGeometry? borderRadiusGeometryOnlyTopRight, BorderRadiusDirectional? borderRadiusDirectionalOnlyTopRight, BorderRadiusGeometry? borderRadiusGeometryDirectionalOnlyTopRight, BorderRadius? borderRadiusOnlyBottomLeft, BorderRadiusGeometry? borderRadiusGeometryOnlyBottomLeft, BorderRadiusDirectional? borderRadiusDirectionalOnlyBottomLeft})

Properties

borderRadius BorderRadius?
The border radius of the shimmer effect.
final
borderRadiusAll BorderRadius?
The border radius of the shimmer effect.
final
borderRadiusDirectional BorderRadiusDirectional?
The border radius of the shimmer effect.
final
borderRadiusDirectionalAll BorderRadiusDirectional?
The border radius of the shimmer effect.
final
borderRadiusDirectionalOnlyBottomLeft BorderRadiusDirectional?
The border radius of the shimmer effect.
final
borderRadiusDirectionalOnlyTopLeft BorderRadiusDirectional?
The border radius of the shimmer effect.
final
borderRadiusDirectionalOnlyTopRight BorderRadiusDirectional?
The border radius of the shimmer effect.
final
borderRadiusGeometry BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryAll BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryDirectional BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryDirectionalAll BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryDirectionalOnlyTopLeft BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryDirectionalOnlyTopRight BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryOnlyBottomLeft BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryOnlyTopLeft BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusGeometryOnlyTopRight BorderRadiusGeometry?
The border radius of the shimmer effect.
final
borderRadiusOnlyBottomLeft BorderRadius?
The border radius of the shimmer effect.
final
borderRadiusOnlyTopLeft BorderRadius?
The border radius of the shimmer effect.
final
borderRadiusOnlyTopRight BorderRadius?
The border radius of the shimmer effect.
final
child Widget
The child of the GrockShimmer widget.
final
color Color
The color of the shimmer effect.
final
curve Curve
The curve of the shimmer effect.
final
direction Axis
The direction of the shimmer effect.
final
duration Duration
The duration of the shimmer effect.
final
gradient Gradient?
The gradient of the shimmer effect.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
opacity double
The opacity of the shimmer effect.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _GrockShimmerState
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}) 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