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 offset = namedArguments[const Symbol('offset')];
  if (offset == null) {
    throw "offset required in Transform.translate";
  }
  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.translate(
    offset: offset as Offset,
    filterQuality: filterQuality,
    child: child,
  );
}