remove assert for nullable constructor params
This commit is contained in:
committed by
Salvatore Giordano
parent
74fb9d8dd8
commit
e2fed83946
@@ -25,8 +25,7 @@ class ChannelsBloc extends StatefulWidget {
|
|||||||
this.lockChannelsOrder = false,
|
this.lockChannelsOrder = false,
|
||||||
this.channelsComparator,
|
this.channelsComparator,
|
||||||
this.shouldAddChannel,
|
this.shouldAddChannel,
|
||||||
}) : assert(child != null, 'Parameter child should not be null.'),
|
}) : super(key: key);
|
||||||
super(key: key);
|
|
||||||
|
|
||||||
/// The widget child
|
/// The widget child
|
||||||
final Widget child;
|
final Widget child;
|
||||||
|
|||||||
@@ -70,17 +70,7 @@ class MessageListCore extends StatefulWidget {
|
|||||||
this.parentMessage,
|
this.parentMessage,
|
||||||
this.messageListController,
|
this.messageListController,
|
||||||
this.messageFilter,
|
this.messageFilter,
|
||||||
}) : assert(loadingBuilder != null, 'loadingBuilder should not be null'),
|
}) : super(key: key);
|
||||||
assert(emptyBuilder != null, 'emptyBuilder should not be null'),
|
|
||||||
assert(
|
|
||||||
messageListBuilder != null,
|
|
||||||
'messageListBuilder should not be null',
|
|
||||||
),
|
|
||||||
assert(
|
|
||||||
errorWidgetBuilder != null,
|
|
||||||
'errorWidgetBuilder should not be null',
|
|
||||||
),
|
|
||||||
super(key: key);
|
|
||||||
|
|
||||||
/// A [MessageListController] allows pagination.
|
/// A [MessageListController] allows pagination.
|
||||||
/// Use [ChannelListController.paginateData] pagination.
|
/// Use [ChannelListController.paginateData] pagination.
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ class MessageSearchBloc extends StatefulWidget {
|
|||||||
const MessageSearchBloc({
|
const MessageSearchBloc({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.child,
|
required this.child,
|
||||||
}) : assert(child != null, 'Parameter child should not be null.'),
|
}) : super(key: key);
|
||||||
super(key: key);
|
|
||||||
|
|
||||||
/// The widget child
|
/// The widget child
|
||||||
final Widget child;
|
final Widget child;
|
||||||
|
|||||||
Reference in New Issue
Block a user