[Core] sort constructor first across package
This commit is contained in:
@@ -37,15 +37,6 @@ class ChannelsBloc extends StatefulWidget {
|
||||
/// Function used to evaluate if a channel should be added to the list when a message.new event is received
|
||||
final bool Function(Event) shouldAddChannel;
|
||||
|
||||
/// Instantiate a new ChannelsBloc
|
||||
const ChannelsBloc({
|
||||
Key key,
|
||||
this.child,
|
||||
this.lockChannelsOrder = false,
|
||||
this.channelsComparator,
|
||||
this.shouldAddChannel,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
ChannelsBlocState createState() => ChannelsBlocState();
|
||||
|
||||
|
||||
@@ -6,6 +6,21 @@ enum _LoadingStatus { LOADING, STABLE }
|
||||
/// Wrapper around a [Scrollable] which triggers [onEndOfPage]/[onStartOfPage] the Scrollable
|
||||
/// reaches to the start or end of the view extent.
|
||||
class LazyLoadScrollView extends StatefulWidget {
|
||||
/// Creates a new instance of [LazyLoadScrollView]. The parameter [child] must be
|
||||
/// supplied and not null.
|
||||
const LazyLoadScrollView({
|
||||
Key key,
|
||||
@required this.child,
|
||||
this.onStartOfPage,
|
||||
this.onEndOfPage,
|
||||
this.onPageScrollStart,
|
||||
this.onPageScrollEnd,
|
||||
this.onInBetweenOfPage,
|
||||
this.isLoading = false,
|
||||
this.scrollOffset = 100,
|
||||
}) : assert(child != null),
|
||||
super(key: key);
|
||||
|
||||
/// The [Widget] that this widget watches for changes on
|
||||
final Widget child;
|
||||
|
||||
@@ -30,19 +45,6 @@ class LazyLoadScrollView extends StatefulWidget {
|
||||
/// Used to determine if loading of new data has finished. You should use set this if you aren't using a [FutureBuilder] or [StreamBuilder].
|
||||
final bool isLoading;
|
||||
|
||||
/// Initiates a LazyLoadScrollView widget
|
||||
const LazyLoadScrollView({
|
||||
Key key,
|
||||
@required this.child,
|
||||
this.onStartOfPage,
|
||||
this.onEndOfPage,
|
||||
this.onPageScrollStart,
|
||||
this.onPageScrollEnd,
|
||||
this.onInBetweenOfPage,
|
||||
this.isLoading = false,
|
||||
this.scrollOffset = 100,
|
||||
}) : assert(child != null),
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => _LazyLoadScrollViewState();
|
||||
|
||||
@@ -12,9 +12,6 @@ import 'stream_chat_core.dart';
|
||||
///
|
||||
// API docs: https://getstream.io/chat/docs/flutter-dart/send_message/
|
||||
class MessageSearchBloc extends StatefulWidget {
|
||||
/// The widget child
|
||||
final Widget child;
|
||||
|
||||
/// Instantiate a new MessageSearchBloc
|
||||
const MessageSearchBloc({
|
||||
Key key,
|
||||
|
||||
@@ -32,13 +32,6 @@ import 'package:stream_chat/stream_chat.dart';
|
||||
/// ```
|
||||
///
|
||||
class StreamChatCore extends StatefulWidget {
|
||||
/// Instance of Stream Chat Client containing information about the current
|
||||
/// application.
|
||||
final Client client;
|
||||
|
||||
/// Widget descendant.
|
||||
final Widget child;
|
||||
|
||||
/// Constructor used for creating a new instance of [StreamChatCore].
|
||||
///
|
||||
/// [StreamChatCore] is a stateful widget which reacts to system events and updates
|
||||
|
||||
@@ -11,10 +11,6 @@ import 'stream_chat_core.dart';
|
||||
///
|
||||
/// API docs: https://getstream.io/chat/docs/flutter-dart/init_and_users/
|
||||
class UsersBloc extends StatefulWidget {
|
||||
/// The widget child
|
||||
final Widget child;
|
||||
|
||||
/// Instantiate a new UsersBloc
|
||||
/// Instantiate a new [UsersBloc]. The parameter [child] must be supplied and
|
||||
/// not null.
|
||||
const UsersBloc({
|
||||
@@ -22,6 +18,9 @@ class UsersBloc extends StatefulWidget {
|
||||
@required this.child,
|
||||
}) : super(key: key);
|
||||
|
||||
/// The widget child
|
||||
final Widget child;
|
||||
|
||||
@override
|
||||
UsersBlocState createState() => UsersBlocState();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user