call method

  1. @override
Object call(
  1. Interpreter interpreter,
  2. List<Object?> arguments,
  3. Map<Symbol, Object?> namedArguments
)
override

Implementation

@override
Object call(Interpreter interpreter, List<Object?> arguments,
    Map<Symbol, Object?> namedArguments) {
  var angle = namedArguments[const Symbol('angle')];
  if (angle == null) {
    throw "angle required in Transform.rotate";
  }
  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.rotate(
    angle: angle as double,
    origin: origin,
    alignment: alignment,
    filterQuality: filterQuality,
    child: child,
  );
}