RumbleEffect class

A class for holding data about a rumble effect.

Annotations
  • @JsonSerializable()

Constructors

RumbleEffect({required int duration, int lowFrequency = 65535, int highFrequency = 65535})
Create an instance.
const
RumbleEffect.fromJson(Map<String, dynamic> json)
Create an instance from a JSON object.
factory

Properties

duration int
The duration of the effect.
final
hashCode int
The hash code for this object.
no setterinherited
highFrequency int
The high frequency.
final
lowFrequency int
The low frequency.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispatch(Game game) → void
Perform this effect.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert an instance to JSON.
toString() String
A string representation of this object.
inherited

Operators

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