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) {
  double? height = parseDouble(namedArguments[const Symbol('height')]);
  double? thickness = parseDouble(namedArguments[const Symbol('thickness')]);
  double? indent = parseDouble(namedArguments[const Symbol('indent')]);
  double? endIndent = parseDouble(namedArguments[const Symbol('endIndent')]);
  Color? color;
  var colorParsed = namedArguments[const Symbol('color')];
  if (colorParsed != null) {
    color = colorParsed as Color;
  }
  return Divider(
    height: height,
    thickness: thickness,
    indent: indent,
    endIndent: endIndent,
    color: color,
  );
}