[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
|
/// 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;
|
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
|
@override
|
||||||
ChannelsBlocState createState() => ChannelsBlocState();
|
ChannelsBlocState createState() => ChannelsBlocState();
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,21 @@ enum _LoadingStatus { LOADING, STABLE }
|
|||||||
/// Wrapper around a [Scrollable] which triggers [onEndOfPage]/[onStartOfPage] the Scrollable
|
/// Wrapper around a [Scrollable] which triggers [onEndOfPage]/[onStartOfPage] the Scrollable
|
||||||
/// reaches to the start or end of the view extent.
|
/// reaches to the start or end of the view extent.
|
||||||
class LazyLoadScrollView extends StatefulWidget {
|
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
|
/// The [Widget] that this widget watches for changes on
|
||||||
final Widget child;
|
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].
|
/// 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;
|
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
|
@override
|
||||||
State<StatefulWidget> createState() => _LazyLoadScrollViewState();
|
State<StatefulWidget> createState() => _LazyLoadScrollViewState();
|
||||||
|
|||||||
@@ -12,9 +12,6 @@ import 'stream_chat_core.dart';
|
|||||||
///
|
///
|
||||||
// API docs: https://getstream.io/chat/docs/flutter-dart/send_message/
|
// API docs: https://getstream.io/chat/docs/flutter-dart/send_message/
|
||||||
class MessageSearchBloc extends StatefulWidget {
|
class MessageSearchBloc extends StatefulWidget {
|
||||||
/// The widget child
|
|
||||||
final Widget child;
|
|
||||||
|
|
||||||
/// Instantiate a new MessageSearchBloc
|
/// Instantiate a new MessageSearchBloc
|
||||||
const MessageSearchBloc({
|
const MessageSearchBloc({
|
||||||
Key key,
|
Key key,
|
||||||
|
|||||||
@@ -32,13 +32,6 @@ import 'package:stream_chat/stream_chat.dart';
|
|||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
class StreamChatCore extends StatefulWidget {
|
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].
|
/// Constructor used for creating a new instance of [StreamChatCore].
|
||||||
///
|
///
|
||||||
/// [StreamChatCore] is a stateful widget which reacts to system events and updates
|
/// [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/
|
/// API docs: https://getstream.io/chat/docs/flutter-dart/init_and_users/
|
||||||
class UsersBloc extends StatefulWidget {
|
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
|
/// Instantiate a new [UsersBloc]. The parameter [child] must be supplied and
|
||||||
/// not null.
|
/// not null.
|
||||||
const UsersBloc({
|
const UsersBloc({
|
||||||
@@ -22,6 +18,9 @@ class UsersBloc extends StatefulWidget {
|
|||||||
@required this.child,
|
@required this.child,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
|
/// The widget child
|
||||||
|
final Widget child;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
UsersBlocState createState() => UsersBlocState();
|
UsersBlocState createState() => UsersBlocState();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user