RelativeRotaryRotation class

Represents a rotary switch's rotation.

Constructors

RelativeRotaryRotation({required String direction, required int steps, required int durationMilliseconds})
Creates a RelativeRotaryRotation object.
RelativeRotaryRotation.empty()
Creates an empty RelativeRotaryRotation object.
RelativeRotaryRotation.fromJson(Map<String, dynamic> dataMap)
Creates a RelativeRotaryRotation object from the JSON response to a GET request.
factory

Properties

direction String
A rotation opposite to the previous rotation, will always start with new start command.
final
durationMilliseconds int
Duration of rotation since previous event, in the case of repeat
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
steps int
Amount of rotation since previous event, in the case of repeat.
final

Methods

copyWith({String? direction, int? steps, int? durationMilliseconds}) RelativeRotaryRotation
Returns a copy of this object with its field values replaced by the ones provided to this method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this object into JSON format.
toString() String
A string representation of this object.
override

Operators

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