buildByMaterial method
build on material mode
Implementation
@override
Widget buildByMaterial(BuildContext context) {
final iconData = valueOf('fallbackIcon', fallbackIcon);
if (iconData != null) {
return Icon(
iconData,
size: valueOf('size', size),
color: valueOf('color', color),
);
}
// Fallback: show symbol name as text
return Text(
valueOf('symbol', symbol),
style: TextStyle(
fontSize: valueOf('size', size),
color: valueOf('color', color),
),
);
}