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 Row(
key: key,
crossAxisAlignment: crossAxisAlignment,
mainAxisAlignment: mainAxisAlignment,
mainAxisSize: mainAxisSize,
// TODO: Not yet supported by Flutter stable.
//spacing: spacing,
textDirection: textDirection,
verticalDirection: verticalDirection,
children: children,
);
};
}