Formatter constructor
Formatter(
- FileSystemEntity entity,
- FileStat stat,
- String extra,
- String action, {
- bool ok = false,
- List<
FormatField> shows = const [], - String delimiter = r' ',
- StatTimeType statTimeType = StatTimeType.modified,
Implementation
Formatter(
this.entity,
this.stat,
this.extra,
this.action, {
this.ok = false,
this.shows = const [],
this.delimiter = r' ',
this.statTimeType = StatTimeType.modified,
}) {
if (shows.contains(FormatField.ok)) showOk = true;
if (shows.contains(FormatField.action)) showAction = true;
if (shows.contains(FormatField.type)) showType = true;
if (shows.contains(FormatField.mime)) showMime = true;
if (shows.contains(FormatField.perm)) showModes = true;
if (shows.contains(FormatField.time)) showTime = true;
if (shows.contains(FormatField.size)) showSize = true;
if (shows.contains(FormatField.extra)) showExtra = true;
}