maybeGenerate static method

List<List<Gid>>? maybeGenerate(
  1. List<int>? data,
  2. int width,
  3. int height
)

Implementation

static List<List<Gid>>? maybeGenerate(
  List<int>? data,
  int width,
  int height,
) {
  if (data == null) {
    return null;
  }
  return Gid.generate(data, width, height);
}