buildValue method
Builds the value for the specific type.
Make sure to only override this method with any new DesignTokenParser you create. Please avoid directly calling this method outside DesignTokenParser. Prefer DesignTokenParser.parse.
Implementation
@override
String buildValue(value) {
if (value is String) {
final pixel = double.parse(value.split('px').first);
return pixel.toString();
}
throw Exception('Unable to parse dimension value with data: $value');
}