call method
Implementation
@override
Object? call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
List<Widget> children = [];
var childrenParsed = namedArguments[const Symbol('children')];
if (childrenParsed != null) {
children = (childrenParsed as List).cast<Widget>();
}
Axis scrollDirection = Axis.vertical;
var scrollDirectionParsed = namedArguments[const Symbol('scrollDirection')];
if (scrollDirectionParsed != null) {
scrollDirection = scrollDirectionParsed as Axis;
}
bool reverse = false;
var reverseParsed = namedArguments[const Symbol('reverse')];
if (reverseParsed != null) {
reverse = reverseParsed as bool;
}
bool? primary;
var primaryParsed = namedArguments[const Symbol('primary')];
if (primaryParsed != null) {
primary = primaryParsed as bool;
}
bool shrinkWrap = false;
var shrinkWrapParsed = namedArguments[const Symbol('shrinkWrap')];
if (shrinkWrapParsed != null) {
shrinkWrap = shrinkWrapParsed as bool;
}
EdgeInsetsGeometry? padding;
var paddingParsed = namedArguments[const Symbol('padding')];
if (paddingParsed != null) {
padding = paddingParsed as EdgeInsetsGeometry;
}
double? itemExtent =
parseDouble(namedArguments[const Symbol('itemExtent')]);
double? cacheExtent =
parseDouble(namedArguments[const Symbol('cacheExtent')]);
Widget? prototypeItem;
var prototypeItemParsed = namedArguments[const Symbol('prototypeItem')];
if (prototypeItemParsed != null) {
prototypeItem = prototypeItemParsed as Widget;
}
return ListView(
primary: primary,
reverse: reverse,
padding: padding,
itemExtent: itemExtent,
cacheExtent: cacheExtent,
shrinkWrap: shrinkWrap,
prototypeItem: prototypeItem,
scrollDirection: scrollDirection,
children: children);
}