WindIcon class

Create a rotated 'wind' Icon using an degree between 0-360.

Use the static presets, or instantiate WindIcon with an degree.

Example:

// Using custom degree between 0-360
IconButton(
  icon: WindIcon(degree: 45),
  onPressed: () { }
);

// Using a preset degree
IconButton(
  icon: WindIcon.towards_ne,
  onPressed: () { }
);
Inheritance

Constructors

WindIcon({required num degree, Key? key, double? size, Color? color})
const

Properties

color Color?
finalinherited
degree num
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double?
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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

Constants

from_e → const WindIcon
WindIcon for pointing from East.
from_ene → const WindIcon
WindIcon for pointing from East by North-East.
from_ese → const WindIcon
WindIcon for pointing from East by South-East.
from_n → const WindIcon
WindIcon for pointing from North.
from_ne → const WindIcon
WindIcon for pointing from North-East.
from_nne → const WindIcon
WindIcon for pointing from North by North-East.
from_nnw → const WindIcon
WindIcon for pointing from North by North-West.
from_nw → const WindIcon
WindIcon for pointing from North-West.
from_s → const WindIcon
WindIcon for pointing from South.
from_se → const WindIcon
WindIcon for pointing from South-East.
from_sse → const WindIcon
WindIcon for pointing from South by South-East.
from_ssw → const WindIcon
WindIcon for pointing from South by South-West.
from_sw → const WindIcon
WindIcon for pointing from South-West.
from_w → const WindIcon
WindIcon for pointing from West.
from_wnw → const WindIcon
WindIcon for pointing from West by North-West.
from_wsw → const WindIcon
WindIcon for pointing from West by South-West.
towards_e → const WindIcon
WindIcon for pointing towards East.
towards_ene → const WindIcon
WindIcon for pointing towards East by North-East.
towards_ese → const WindIcon
WindIcon for pointing towards Easy by South-East.
towards_n → const WindIcon
WindIcon for pointing towards North.
towards_ne → const WindIcon
WindIcon for pointing towards North-East.
towards_nne → const WindIcon
WindIcon for pointing towards North by North-East.
towards_nnw → const WindIcon
WindIcon for pointing towards North by North-West.
towards_nw → const WindIcon
WindIcon for pointing towards North-West.
towards_s → const WindIcon
WindIcon for pointing towards South.
towards_se → const WindIcon
WindIcon for pointing towards South-East.
towards_sse → const WindIcon
WindIcon for pointing towards South by South-East.
towards_ssw → const WindIcon
WindIcon for pointing towards South by South-West.
towards_sw → const WindIcon
WindIcon for pointing towards South-West.
towards_w → const WindIcon
WindIcon for pointing towards West.
towards_wnw → const WindIcon
WindIcon for pointing towards West by North-West.
towards_wsw → const WindIcon
WindIcon for pointing towards West by South-West.