call method
Implementation
@override
Object? call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
Color color = Colors.black;
if (namedArguments[const Symbol('color')] != null) {
color = namedArguments[const Symbol('color')] as Color;
}
Offset offset = Offset.zero;
if (namedArguments[const Symbol('offset')] != null) {
offset = namedArguments[const Symbol('offset')] as Offset;
}
double blurRadius =
parseDouble(namedArguments[const Symbol('blurRadius')]) ?? 0.0;
return Shadow(color: color, offset: offset, blurRadius: blurRadius);
}