bodyLoading method

Widget bodyLoading({
  1. required Widget body,
  2. bool? inAsyncCall,
  3. double opacity = 0.7,
  4. Color color = Colors.black,
  5. Widget? progressIndicator,
  6. Offset? offset,
  7. bool dismissible = false,
})

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,
    );