bodyLoading method
Implementation
Widget bodyLoading({
required final Widget body,
final bool? inAsyncCall,
final double opacity = 0.7,
final Color color = Colors.black,
final Widget? progressIndicator,
final Offset? offset,
final bool dismissible = false,
}) =>
ModalProgressHUD(
inAsyncCall: inAsyncCall ?? _isLoading,
opacity: opacity,
color: color,
progressIndicator: progressIndicator ?? _buildProgressIndicator(),
offset: offset,
dismissible: dismissible,
child: body,
);