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 Wrap(
      key: key,
      alignment: alignmentWrap,
      crossAxisAlignment: crossAxisAlignment,
      direction: direction,
      spacing: spacing,
      runSpacing: runSpacing,
      runAlignment: runAlignment,
      textDirection: textDirection,
      clipBehavior: clipBehavior,
      verticalDirection: verticalDirection,
      children: children,
    );
  };
}