ConnectivityWidgetWrapper constructor
const
ConnectivityWidgetWrapper({})
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);