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) {
  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;
  }
  return Border(top: top, right: right, bottom: bottom, left: left);
}