Formatting class
A class responsible for configuring formatting options such as preambles, prefixes, suffixes, and postambles.
This class allows the setting of these formatting options using direct input keys or strings and sends the corresponding commands to the BLE device.
- Annotations
Constructors
- Formatting(AppLogger _appLogger)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAllPrefixes(
String deviceId) → Future< CommandResponse> - Clears the prefix formatting on the device.
-
clearAllSuffixes(
String deviceId) → Future< CommandResponse> - Clears the suffix formatting on the device.
-
clearPostamble(
String deviceId) → Future< CommandResponse> - Clears the postamble formatting on the device.
-
clearPreamble(
String deviceId) → Future< CommandResponse> - Clears the preamble formatting on the device.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendCommand(
String deviceId, String command, {List< String> parameters = const [], bool sendFeedback = true}) → Future<CommandResponse> -
inherited
-
setPostambleFromKeys(
{required dynamic deviceId, required List< DirectInputKey> keys}) → Future<CommandResponse> - Sets the postamble formatting using a list of DirectInputKey.
-
setPostambleFromString(
{required dynamic deviceId, required String postamble}) → Future< CommandResponse> - Sets the postamble formatting using a string.
-
setPreambleFromKeys(
{required dynamic deviceId, required List< DirectInputKey> keys}) → Future<CommandResponse> - Sets the preamble formatting using a list of DirectInputKey.
-
setPreambleFromString(
{required dynamic deviceId, required String preamble}) → Future< CommandResponse> - Sets the preamble formatting using a string.
-
setPrefixFromKeys(
{required dynamic deviceId, required List< DirectInputKey> keys, FormattableSymbology symbology = FormattableSymbology.allCodes}) → Future<CommandResponse> - Sets the prefix formatting using a list of DirectInputKey.
-
setPrefixFromString(
{required dynamic deviceId, required String prefix, FormattableSymbology symbology = FormattableSymbology.allCodes}) → Future< CommandResponse> - Sets the prefix formatting using a string.
-
setSuffixFromKeys(
{required dynamic deviceId, required List< DirectInputKey> keys, FormattableSymbology symbology = FormattableSymbology.allCodes}) → Future<CommandResponse> - Sets the suffix formatting using a list of DirectInputKey.
-
setSuffixFromString(
{required dynamic deviceId, required String suffix, FormattableSymbology symbology = FormattableSymbology.allCodes}) → Future< CommandResponse> - Sets the suffix formatting using a string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited