ConnectivityWidgetWrapper constructor

const ConnectivityWidgetWrapper({
  1. Key? key,
  2. required Widget child,
  3. Color? color,
  4. Decoration? decoration,
  5. String? message,
  6. TextStyle? messageStyle,
  7. double? height,
  8. Widget? offlineWidget,
  9. bool stacked = true,
  10. AlignmentGeometry? alignment,
  11. bool disableInteraction = false,
})

Implementation

const ConnectivityWidgetWrapper({
  Key? key,
  required this.child,
  this.color,
  this.decoration,
  this.message,
  this.messageStyle,
  this.height,
  this.offlineWidget,
  this.stacked = true,
  this.alignment,
  this.disableInteraction = false,
})  : assert(
        decoration == null || offlineWidget == null,
        'Cannot provide both a color and a offlineWidget\n',
      ),
      assert(
        height == null || offlineWidget == null,
        'Cannot provide both a height and a offlineWidget\n',
      ),
      assert(
        messageStyle == null || offlineWidget == null,
        'Cannot provide both a messageStyle and a offlineWidget\n',
      ),
      assert(
        message == null || offlineWidget == null,
        'Cannot provide both a message and a offlineWidget\n',
      ),
      assert(
          color == null || decoration == null,
          'Cannot provide both a color and a decoration\n'
          'The color argument is just a shorthand for "decoration: new BoxDecoration(color: color)".'),
      super(key: key);