build method
Implementation
@override
Widget build(BuildContext context, SwiperPluginConfig config) {
var alignment = this.alignment ??
(config.scrollDirection == Axis.horizontal
? Alignment.bottomCenter
: Alignment.centerRight);
Widget child = Container(
margin: margin,
child: builder.build(context, config),
);
if (!config.outer) {
child = Align(
key: key,
alignment: alignment,
child: child,
);
}
return child;
}