commonChild method
Implementation
Widget commonChild(Widget child) {
final margin = EdgeInsets.only(
top: _viewModel.layoutY ?? 0.0,
left: _viewModel.layoutX ?? 0.0,
);
if (!margin.isNonNegative) {
return BoxWidget(
_viewModel,
child: child,
);
}
return Container(
alignment: Alignment.topLeft,
margin: margin,
child: BoxWidget(
_viewModel,
child: child,
),
);
}