SmartPosterRecord.fromList constructor

SmartPosterRecord.fromList({
  1. List<TextRecord>? titleRecords,
  2. List<UriRecord>? uriRecords,
  3. List<ActionRecord>? actionRecords,
  4. List<MimeRecord>? iconRecords,
  5. List<SizeRecord>? sizeRecords,
  6. List<TypeRecord>? typeRecords,
})

Implementation

SmartPosterRecord.fromList({
  List<TextRecord>? titleRecords,
  List<UriRecord>? uriRecords,
  List<ActionRecord>? actionRecords,
  List<MimeRecord>? iconRecords,
  List<SizeRecord>? sizeRecords,
  List<TypeRecord>? typeRecords,
}) {
  _init();
  if (titleRecords != null) {
    for (var r in titleRecords) {
      addTitleRecord(r);
    }
  }
  if (uriRecords != null) {
    for (var r in uriRecords) {
      addUriRecord(r);
    }
  }
  if (actionRecords != null) {
    for (var r in actionRecords) {
      addActionRecord(r);
    }
  }
  if (iconRecords != null) {
    for (var r in iconRecords) {
      addIconRecord(r);
    }
  }
  if (sizeRecords != null) {
    for (var r in sizeRecords) {
      addSizeRecord(r);
    }
  }
  if (typeRecords != null) {
    for (var r in typeRecords) {
      addTypeRecord(r);
    }
  }
}