parseTrackList static method
List<GridTrackSize>
parseTrackList(
- String value,
- RenderStyle renderStyle,
- String propertyName,
- Axis axis,
Implementation
static List<GridTrackSize> parseTrackList(
String value,
RenderStyle renderStyle,
String propertyName,
Axis axis,
) {
final String trimmed = value.trim();
if (trimmed.isEmpty) {
return const <GridTrackSize>[];
}
// For template track lists, `none` represents "no explicit tracks".
// Represent this as an empty list so that layout can fall back to
// auto tracks and computed-style serialization can emit `none`.
if (trimmed.toLowerCase() == 'none') {
return const <GridTrackSize>[];
}
return _parseTrackListInternal(trimmed, renderStyle, propertyName, axis);
}