INNER CODE UNIT · Dart

CharacteristicWithValue

dotintent/FlutterBleLib · lib/characteristic.dart:171

class CharacteristicWithValue extends Characteristic {
  Uint8List value;

  CharacteristicWithValue.fromJson(
    Map<String, dynamic> jsonObject,
    Service service,
    ManagerForCharacteristic manager,
  ) : value = base64Decode(jsonObject[_CharacteristicMetadata.value]),
      super.fromJson(jsonObject, service, manager);

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        super == other &&
            other is CharacteristicWithValue &&
            value.toString() == other.value.toString() &&
            runtimeType == other.runtimeType;
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…