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) {
  if (arguments.isEmpty) {
    throw "value required in CustomFloatingActionButtonLocation";
  }
  var value = arguments.first;
  Offset offset = Offset.zero;
  var offsetParsed = namedArguments[const Symbol('offset')];
  if (offsetParsed != null) {
    offset = offsetParsed as Offset;
  }
  return CustomFloatingActionButtonLocation(
      value as FloatingActionButtonLocation,
      offset: offset);
}