LoadingTemplate constructor

const LoadingTemplate({
  1. Key? key,
  2. required Widget icon,
  3. required bool loading,
  4. Widget customIconBuilder(
    1. BuildContext context
    )?,
  5. Color? progressIndicatorColor,
  6. double progressIndicatorStrokeWidth = 5.0,
})

Implementation

const LoadingTemplate({
  Key? key,
  required this.icon,
  required this.loading,
  this.customIconBuilder,
  this.progressIndicatorColor,
  this.progressIndicatorStrokeWidth = 5.0,
})  : assert(
        progressIndicatorColor == null || customIconBuilder == null,
        "When using 'customIconBuilder', you shouldn't define progressIndicator properties as they won't have any effect",
      ),
      super(key: key);