name property

String get name

Implementation

String get name {
  if (this == TWGridColumns.auto) {
    return 'auto';
  } else if (this == TWGridColumns.spanFull) {
    return 'span-full';
  }
  final spanNumber =
      toString().split('.').last.substring(4); // remove 'span' prefix

  return 'span-$spanNumber';
}