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) {
  Widget? child;
  var childParsed = namedArguments[const Symbol('child')];
  if (childParsed != null) {
    child = childParsed as Widget;
  }
  Clip clipBehavior = Clip.antiAlias;
  var clipBehaviorParsed = namedArguments[const Symbol('clipBehavior')];
  if (clipBehaviorParsed != null) {
    clipBehavior = clipBehaviorParsed as Clip;
  }
  return ClipOval(
    child: child,
    clipBehavior: clipBehavior,
  );
}