$getProperty method
Get a property by identifier on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'inherit':
return $bool($value.inherit);
case 'color':
final color = $value.color;
return color == null ? const $null() : $Color.wrap(color);
case 'backgroundColor':
final backgroundColor = $value.backgroundColor;
return backgroundColor == null
? const $null()
: $Color.wrap(backgroundColor);
case 'fontSize':
final fontSize = $value.fontSize;
return fontSize == null ? const $null() : $double(fontSize);
case 'fontWeight':
final fontWeight = $value.fontWeight;
return fontWeight == null
? const $null()
: $FontWeight.wrap(fontWeight);
case 'fontStyle':
final fontStyle = $value.fontStyle;
return fontStyle == null ? const $null() : $FontStyle.wrap(fontStyle);
case 'letterSpacing':
final letterSpacing = $value.letterSpacing;
return letterSpacing == null ? const $null() : $double(letterSpacing);
case 'wordSpacing':
final wordSpacing = $value.wordSpacing;
return wordSpacing == null ? const $null() : $double(wordSpacing);
/*case 'textBaseline':
final textBaseline = $value.textBaseline;
return textBaseline == null ? const $null() : $TextBaseline.wrap(textBaseline);*/
case 'height':
final height = $value.height;
return height == null ? const $null() : $double(height);
}
throw UnimplementedError();
}