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) {
  List<Widget> children = [];
  var childrenParsed = namedArguments[const Symbol('children')];
  if (childrenParsed != null) {
    children = (childrenParsed as List).cast<Widget>();
  }
  TextDirection? textDirection;
  var textDirectionParsed = namedArguments[const Symbol('textDirection')];
  if (textDirectionParsed != null) {
    textDirection = textDirectionParsed as TextDirection;
  }
  StackFit fit = StackFit.loose;
  var fitParsed = namedArguments[const Symbol('fit')];
  if (fitParsed != null) {
    fit = fitParsed as StackFit;
  }
  AlignmentGeometry alignment = AlignmentDirectional.topStart;
  var alignmentParse = namedArguments[const Symbol('alignment')];
  if (alignmentParse != null) {
    alignment = alignmentParse as AlignmentGeometry;
  }
  Clip clipBehavior = Clip.hardEdge;
  var clipBehaviorParsed = namedArguments[const Symbol('clipBehavior')];
  if (clipBehaviorParsed != null) {
    clipBehavior = clipBehaviorParsed as Clip;
  }
  return Stack(
    children: children,
    alignment: alignment,
    clipBehavior: clipBehavior,
    textDirection: textDirection,
    fit: fit,
  );
}