fillBytes function

Uint8List fillBytes(
  1. int value, [
  2. int size = 32
])

Implementation

Uint8List fillBytes(int value, [int size = 32]) {
  return Uint8List.fromList(
    List<int>.generate(size, (i) => value),
  );
}