BulkImportRow class

One CSV row as the bulk-import validator read it.

Constructors

BulkImportRow({required int row, String? contentPreview, DateTime? scheduleAt, List<String> accounts = const [], int? labels, bool hasMedia = false, List<String> errors = const []})
Creates a row.
const
BulkImportRow.fromJson(Map<String, dynamic> json)
Reads a row.
factory

Properties

accounts → List<String>
The accounts the row targets.
final
contentPreview → String?
The start of the row's text.
final
errors → List<String>
What is wrong with this row, if anything.
final
hashCode → int
The hash code for this object.
no setterinherited
hasMedia → bool
Whether the row attaches media.
final
isValid → bool
Whether this row would import cleanly.
no setter
labels → int?
How many labels the row carries.
final
row → int
The 1-based row number in the CSV.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduleAt → DateTime?
When this row's post would go out.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited