call method
Implementation
@override
Object call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
var scale = namedArguments[const Symbol('scale')];
if (scale == null) {
throw "scale required in Transform.scale";
}
Offset? origin;
var originParsed = namedArguments[const Symbol('origin')];
if (originParsed != null) {
origin = originParsed as Offset;
}
AlignmentGeometry? alignment;
var alignmentParsed = namedArguments[const Symbol('alignment')];
if (alignmentParsed != null) {
alignment = alignmentParsed as AlignmentGeometry;
}
FilterQuality? filterQuality;
var filterQualityParsed = namedArguments[const Symbol('filterQuality')];
if (filterQualityParsed != null) {
filterQuality = filterQualityParsed as FilterQuality;
}
Widget? child;
var childParsed = namedArguments[const Symbol('child')];
if (childParsed != null) {
child = childParsed as Widget;
}
return Transform.scale(
scale: scale as double,
origin: origin,
alignment: alignment,
filterQuality: filterQuality,
child: child,
);
}