EmptyWidget constructor

EmptyWidget({
  1. required Key key,
  2. String? status,
  3. String? buttonText,
  4. bool? isShowImage,
  5. Widget? imageEmpty,
  6. VoidCallback? onTap,
})

Implementation

EmptyWidget({
  required Key key,
  String? status,
  String? buttonText,
  bool? isShowImage,
  Widget? imageEmpty,
  VoidCallback? onTap,
})  : _status = status ?? '',
      _buttonText = buttonText ?? '',
      _isShowImage = isShowImage ?? true,
      _imageEmpty = imageEmpty ?? Icon(Icons.image),
      _callback = onTap,
      super(key: key);