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) {
  double minWidth =
      parseDouble(namedArguments[const Symbol('minWidth')]) ?? 0;
  double maxWidth = parseDouble(namedArguments[const Symbol('maxWidth')]) ??
      double.infinity;
  double minHeight =
      parseDouble(namedArguments[const Symbol('minHeight')]) ?? 0;
  double maxHeight = parseDouble(namedArguments[const Symbol('maxHeight')]) ??
      double.infinity;
  return BoxConstraints(
    minWidth: minWidth,
    maxWidth: maxWidth,
    minHeight: minHeight,
    maxHeight: maxHeight,
  );
}