Flic2Button class
a class to contain all the data about a flic 2 button
Constructors
- Flic2Button({required String uuid, required String buttonAddr, required int readyTimestamp, required String name, required String serialNo, required Flic2ButtonConnectionState connectionState, required int firmwareVersion, required int? battPercentage, required int? battTimestamp, required double? battVoltage, required int pressCount})
-
constructor
const
Properties
- battPercentage → int?
-
the state of the battery % so from 0 - 100
final
- battTimestamp → int?
-
the timestamp the battery data was stored (not iOS)
final
- battVoltage → double?
-
the current voltage of the battery
final
-
the bluetooth address of this button
final
- connectionState → Flic2ButtonConnectionState
-
is this button connected etc
final
- firmwareVersion → int
-
the firmware version
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
the friendly name of this button
final
- pressCount → int
-
a global counter of how often this button has been clicked
final
- readyTimestamp → int
-
the time at which this button became ready last (not iOS)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialNo → String
-
the serial number of this button
final
- uuid → String
-
the unique ID of this button - a long ugly string
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited