Skip to content

Commit

Permalink
use late
Browse files Browse the repository at this point in the history
  • Loading branch information
imtoori committed Jun 29, 2021
1 parent a9c7abb commit 418c9ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class ChannelListView extends StatefulWidget {
class _ChannelListViewState extends State<ChannelListView> {
final _slideController = SlidableController();

final _defaultController = ChannelListController();
late final _defaultController = ChannelListController();
ChannelListController get _channelListController =>
widget.channelListController ?? _defaultController;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class _MessageListViewState extends State<MessageListView> {

bool _inBetweenList = false;

final _defaultController = MessageListController();
late final _defaultController = MessageListController();
MessageListController get _messageListController =>
widget.messageListController ?? _defaultController;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class MessageSearchListView extends StatefulWidget {
}

class _MessageSearchListViewState extends State<MessageSearchListView> {
final _defaultController = MessageSearchListController();
late final _defaultController = MessageSearchListController();
MessageSearchListController get _messageSearchListController =>
widget.messageSearchListController ?? _defaultController;

Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat_flutter/lib/src/user_list_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class _UserListViewState extends State<UserListView>
with WidgetsBindingObserver {
bool get _isListView => widget.crossAxisCount == 1;

final _defaultController = UserListController();
late final _defaultController = UserListController();
UserListController get _userListController =>
widget.userListController ?? _defaultController;

Expand Down

0 comments on commit 418c9ae

Please sign in to comment.