call method
Implementation
@override
Object? call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
double? left = parseDouble(namedArguments[const Symbol('left')]);
double? top = parseDouble(namedArguments[const Symbol('top')]);
double? right = parseDouble(namedArguments[const Symbol('right')]);
double? bottom = parseDouble(namedArguments[const Symbol('bottom')]);
double? width = parseDouble(namedArguments[const Symbol('width')]);
double? height = parseDouble(namedArguments[const Symbol('height')]);
var child = namedArguments[const Symbol('child')];
if (child == null) {
throw "child is required";
}
return Positioned(
left: left,
top: top,
right: right,
bottom: bottom,
width: width,
height: height,
child: child as Widget,
);
}