toWidget method
Return the associated Widget
Implementation
@override
Widget toWidget(BuildContext context) => AspectRatio(
aspectRatio: aspectRatio ?? 1,
child: child()?.toWidget(context),
);
Return the associated Widget
@override
Widget toWidget(BuildContext context) => AspectRatio(
aspectRatio: aspectRatio ?? 1,
child: child()?.toWidget(context),
);