fix analysis
This commit is contained in:
@@ -44,7 +44,6 @@ linter:
|
|||||||
- avoid_private_typedef_functions
|
- avoid_private_typedef_functions
|
||||||
- avoid_redundant_argument_values
|
- avoid_redundant_argument_values
|
||||||
- avoid_return_types_on_setters
|
- avoid_return_types_on_setters
|
||||||
- avoid_returning_null
|
|
||||||
- avoid_returning_null_for_void
|
- avoid_returning_null_for_void
|
||||||
- avoid_shadowing_type_parameters
|
- avoid_shadowing_type_parameters
|
||||||
- avoid_single_cascade_in_expression_statements
|
- avoid_single_cascade_in_expression_statements
|
||||||
|
|||||||
@@ -1209,6 +1209,7 @@ class ChannelClientState {
|
|||||||
ChannelClientState(
|
ChannelClientState(
|
||||||
this._channel,
|
this._channel,
|
||||||
ChannelState channelState,
|
ChannelState channelState,
|
||||||
|
// ignore: unnecessary_parenthesis
|
||||||
) : _debouncedUpdatePersistenceChannelState = ((ChannelState state) {
|
) : _debouncedUpdatePersistenceChannelState = ((ChannelState state) {
|
||||||
_channel?._client?.chatPersistenceClient?.updateChannelState(state);
|
_channel?._client?.chatPersistenceClient?.updateChannelState(state);
|
||||||
}).debounced(const Duration(seconds: 1)) {
|
}).debounced(const Duration(seconds: 1)) {
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import 'package:moor/moor.dart';
|
import 'package:moor/moor.dart';
|
||||||
import 'package:stream_chat/stream_chat.dart';
|
import 'package:stream_chat/stream_chat.dart';
|
||||||
|
import 'package:stream_chat_persistence/src/converter/converter.dart';
|
||||||
import '../converter/converter.dart';
|
import 'package:stream_chat_persistence/src/dao/dao.dart';
|
||||||
import '../dao/dao.dart';
|
import 'package:stream_chat_persistence/src/db/shared/shared_db.dart';
|
||||||
import '../entity/entity.dart';
|
import 'package:stream_chat_persistence/src/entity/entity.dart';
|
||||||
import 'shared/shared_db.dart';
|
|
||||||
|
|
||||||
part 'moor_chat_database.g.dart';
|
part 'moor_chat_database.g.dart';
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class Channels extends Table {
|
|||||||
TextColumn get config => text().map(MapConverter<Object>())();
|
TextColumn get config => text().map(MapConverter<Object>())();
|
||||||
|
|
||||||
/// True if this channel entity is frozen
|
/// True if this channel entity is frozen
|
||||||
BoolColumn get frozen => boolean().withDefault(Constant(false))();
|
BoolColumn get frozen => boolean().withDefault(const Constant(false))();
|
||||||
|
|
||||||
/// The date of the last message
|
/// The date of the last message
|
||||||
DateTimeColumn get lastMessageAt => dateTime().nullable()();
|
DateTimeColumn get lastMessageAt => dateTime().nullable()();
|
||||||
|
|||||||
@@ -11,17 +11,17 @@ environment:
|
|||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
mutex: ^2.0.0
|
|
||||||
moor: ^3.4.0
|
|
||||||
path: ^1.7.0
|
|
||||||
logging: ^0.11.4
|
logging: ^0.11.4
|
||||||
meta: ^1.2.4
|
meta: ^1.2.4
|
||||||
|
moor: ^3.4.0
|
||||||
|
mutex: ^2.0.0
|
||||||
|
path: ^1.7.0
|
||||||
path_provider: ^1.6.27
|
path_provider: ^1.6.27
|
||||||
sqlite3_flutter_libs: ^0.4.0+1
|
sqlite3_flutter_libs: ^0.4.0+1
|
||||||
stream_chat: ^1.5.0
|
stream_chat: ^1.5.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
test: ^1.15.7
|
|
||||||
build_runner: ^1.11.0
|
build_runner: ^1.11.0
|
||||||
moor_generator: ^3.4.1
|
moor_generator: ^3.4.1
|
||||||
pedantic: ^1.9.2
|
pedantic: ^1.9.2
|
||||||
|
test: ^1.15.7
|
||||||
|
|||||||
Reference in New Issue
Block a user