fix analysis
This commit is contained in:
@@ -238,7 +238,7 @@ class MessageListView extends StatefulWidget {
|
||||
/// Customize the MessageWidget textBuilder
|
||||
final void Function(BuildContext context, Message message)? textBuilder;
|
||||
|
||||
final void Function(String link) onLinkTap;
|
||||
final void Function(String link)? onLinkTap;
|
||||
|
||||
@override
|
||||
_MessageListViewState createState() => _MessageListViewState();
|
||||
|
||||
@@ -99,7 +99,7 @@ class ChannelQueryDao extends DatabaseAccessor<MoorChatDatabase>
|
||||
if (sort != null && sort.isNotEmpty) {
|
||||
chainedComparator = (a, b) {
|
||||
int result;
|
||||
for (final comparator in sort!.map((it) => it.comparator)) {
|
||||
for (final comparator in sort.map((it) => it.comparator)) {
|
||||
try {
|
||||
result = comparator!(a, b);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user