call method
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;
}
String? text;
var textParsed = namedArguments[const Symbol('text')];
if (textParsed != null) {
text = textParsed as String;
}
Widget? icon;
var iconParsed = namedArguments[const Symbol('icon')];
if (iconParsed != null) {
icon = iconParsed as Widget;
}
double? height = parseDouble(namedArguments[const Symbol('height')]);
EdgeInsetsGeometry iconMargin = const EdgeInsets.only(bottom: 10);
var iconMarginParsed = namedArguments[const Symbol('iconMargin')];
if (iconMarginParsed != null) {
iconMargin = iconMarginParsed as EdgeInsetsGeometry;
}
return Tab(
text: text,
icon: icon,
height: height,
child: child,
iconMargin: iconMargin,
);
}