Table class

Constructors

Table(List<String> header, List<List> rows)
Table.from(List<List<String?>> data, {bool hasHeader = false})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
final
rows List<List>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

column<T>(dynamic index) Iterable<T>
columnAsBool(dynamic index, {List<String> trues = const ['true', 'True'], List<String> falses = const ['false', 'False'], bool? defaultValue}) Iterable<bool?>
columnAsDateTime(dynamic index, {String format = ColumnConverter.defDateTimeFormat, String? locale, bool isUtc = false, DateTime? defaultValue}) Iterable<DateTime?>
columnAsDouble(dynamic index, {double? defaultValue}) Iterable<double?>
columnAsInt(dynamic index, {int? defaultValue}) Iterable<int?>
columnAsNum(dynamic index, {num? defaultValue}) Iterable<num?>
columnToBool(dynamic index, {List<String> trues = const ['true', 'True'], List<String> falses = const ['false', 'False'], bool? defaultValue}) → void
columnToDateTime(dynamic index, {String format = ColumnConverter.defDateTimeFormat, String? locale, bool isUtc = false, DateTime? defaultValue}) → void
columnToDouble(dynamic index, {double? defaultValue}) → void
columnToInt(dynamic index, {int? defaultValue}) → void
columnToNum(dynamic index, {num? defaultValue}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rowToMap(int index) Map<String, dynamic>
rowToObject<O>(int index, O mapper(Map<String, dynamic> row)) → O
toList() List<List>
toMap() Iterable<Map<String, dynamic>>
toObjects<O>(O mapper(Map<String, dynamic> row)) Iterable<O>
toString() String
A string representation of this object.
override

Operators

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