call method
Implementation
@override
Object? call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
var color = namedArguments[const Symbol('color')];
if (color == null) {
throw "color required in ColoredBox";
}
Widget? child;
var childParsed = namedArguments[const Symbol('child')];
if (childParsed != null) {
child = childParsed as Widget;
}
return ColoredBox(
color: color as Color,
child: child,
);
}