call method
Implementation
@override
Object? call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
BorderSide top = BorderSide.none;
var topParsed = namedArguments[const Symbol('top')];
if (topParsed != null) {
top = topParsed as BorderSide;
}
BorderSide right = BorderSide.none;
var rightParsed = namedArguments[const Symbol('right')];
if (rightParsed != null) {
right = rightParsed as BorderSide;
}
BorderSide bottom = BorderSide.none;
var bottomParsed = namedArguments[const Symbol('bottom')];
if (bottomParsed != null) {
bottom = bottomParsed as BorderSide;
}
BorderSide left = BorderSide.none;
var leftParsed = namedArguments[const Symbol('left')];
if (leftParsed != null) {
left = leftParsed as BorderSide;
}
BorderSide horizontalInside = BorderSide.none;
var horizontalInsideParsed =
namedArguments[const Symbol('horizontalInside')];
if (horizontalInsideParsed != null) {
horizontalInside = horizontalInsideParsed as BorderSide;
}
BorderSide verticalInside = BorderSide.none;
var verticalInsideParsed = namedArguments[const Symbol('verticalInside')];
if (verticalInsideParsed != null) {
verticalInside = verticalInsideParsed as BorderSide;
}
BorderRadius borderRadius = BorderRadius.zero;
var borderRadiusParsed = namedArguments[const Symbol('borderRadius')];
if (borderRadiusParsed != null) {
borderRadius = borderRadiusParsed as BorderRadius;
}
return TableBorder(
top: top,
right: right,
bottom: bottom,
left: left,
horizontalInside: horizontalInside,
verticalInside: verticalInside,
borderRadius: borderRadius,
);
}