list static method

Future<Program> list(
  1. List<Program> list
)

Program from list

Implementation

static Future<Program> list(List<Program> list) async {
  final programListStr = await Future.wait(list
      .map(
        (e) async => e.serializeToHex(),
      )
      .toList());
  final resultBytes = await api.programFromList(programList: programListStr);
  final programResult = Program._(
    sourceType: _ProgramSourceType.bytes,
    sourceValue: resultBytes,
  );

  return programResult;
}