writeArray<T> method

void writeArray<T>(
  1. List<T> array,
  2. void func(
    1. T
    ), {
  3. int? specArrayLen,
})

Implementation

void writeArray<T>(List<T> array, void Function(T) func,
    {int? specArrayLen}) {
  final arrayLen = array.length;
  if (specArrayLen == null || specArrayLen < 0) {
    writeUint32(arrayLen);
  }
  array.forEach(func);
}