matchLength static method

Uint8List matchLength(
  1. Uint8List a, [
  2. int? number
])

Implementation

static Uint8List matchLength(Uint8List a, [int? number]) {
  if (number != null && number > 0 && a.length != number) {
    throw Exception('Uint8List not of specific length: $number');
  }
  return a;
}