build property

  1. @override
Widget Function({required Widget child, required BuildContext context}) get build
override

Implementation

@override
Widget Function({
  required BuildContext context,
  required Widget child,
}) get build {
  return ({
    required BuildContext context,
    required Widget child,
  }) {
    final children = [child];
    for (final plugin in plugins) {
      children.add(plugin.attach(context, children.last));
    }
    return Stack(
      key: key,
      alignment: alignment,
      textDirection: textDirection,
      fit: fit,
      clipBehavior: clipBehavior,
      children: children,
    );
  };
}