hexByte property

String hexByte

Implementation

String get hexByte {
  if (this > 255) {
    throw Exception('invalid byte value. must be <= 255');
  }
  return toRadixString(16).padLeft(2, '0');
}