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 children = namedArguments[const Symbol('children')];
  if (children == null) {
    throw "children required in TabBarView";
  }
  DragStartBehavior dragStartBehavior = DragStartBehavior.start;
  var dragStartBehaviorParsed =
      namedArguments[const Symbol('dragStartBehavior')];
  if (dragStartBehaviorParsed != null) {
    dragStartBehavior = dragStartBehaviorParsed as DragStartBehavior;
  }
  return TabBarView(
    children: children as List<Widget>,
    dragStartBehavior: dragStartBehavior,
  );
}