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) {
  MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start;
  var mainAxisAlignmentParsed =
      namedArguments[const Symbol('mainAxisAlignment')];
  if (mainAxisAlignmentParsed != null) {
    mainAxisAlignment = mainAxisAlignmentParsed as MainAxisAlignment;
  }
  CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center;
  var crossAxisAlignmentParsed =
      namedArguments[const Symbol('crossAxisAlignment')];
  if (crossAxisAlignmentParsed != null) {
    crossAxisAlignment = crossAxisAlignmentParsed as CrossAxisAlignment;
  }
  var childrenParsed = namedArguments[const Symbol('children')];
  if (childrenParsed == null) {
    throw "children required in Column";
  }
  MainAxisSize mainAxisSize = MainAxisSize.max;
  var mainAxisSizeParsed = namedArguments[const Symbol('mainAxisSize')];
  if (mainAxisSizeParsed != null) {
    mainAxisSize = mainAxisSizeParsed as MainAxisSize;
  }
  TextDirection? textDirection;
  var textDirectionParsed = namedArguments[const Symbol('textDirection')];
  if (textDirectionParsed != null) {
    textDirection = textDirectionParsed as TextDirection;
  }
  VerticalDirection verticalDirection = VerticalDirection.down;
  var verticalDirectionParsed =
      namedArguments[const Symbol('verticalDirection')];
  if (verticalDirectionParsed != null) {
    verticalDirection = verticalDirectionParsed as VerticalDirection;
  }
  TextBaseline? textBaseline;
  var textBaselineParsed = namedArguments[const Symbol('textBaseline')];
  if (textBaselineParsed != null) {
    textBaseline = textBaselineParsed as TextBaseline;
  }
  List<Widget> children = (childrenParsed as List).cast<Widget>();
  return Column(
    children: children,
    mainAxisSize: mainAxisSize,
    textDirection: textDirection,
    textBaseline: textBaseline,
    verticalDirection: verticalDirection,
    mainAxisAlignment: mainAxisAlignment,
    crossAxisAlignment: crossAxisAlignment,
  );
}