Skip to content

Commit

Permalink
mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
tshedor committed Feb 18, 2025
1 parent 1e774f7 commit 01ca5c5
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 @@ -4,4 +4,4 @@ import 'package:brick_sqlite/brick_sqlite.dart' show SqliteModel;
///
/// Why isn't this in the `offline_first.dart` file in the SQLite package?
/// This is model required by the generator which cannot include Flutter as a dependency.
abstract mixin class OfflineFirstModel extends SqliteModel {}
abstract class OfflineFirstModel extends SqliteModel {}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import 'package:brick_graphql/brick_graphql.dart' show GraphqlModel;
import 'package:brick_offline_first/brick_offline_first.dart';

/// GraphQL-enabled [OfflineFirstModel]
abstract mixin class OfflineFirstWithGraphqlModel extends OfflineFirstModel with GraphqlModel {}
abstract class OfflineFirstWithGraphqlModel extends OfflineFirstModel with GraphqlModel {}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import 'package:brick_offline_first/brick_offline_first.dart' show OfflineFirstM
import 'package:brick_rest/brick_rest.dart';

/// An offline-first enabled model for use with the [RestProvider]
abstract mixin class OfflineFirstWithRestModel extends OfflineFirstModel with RestModel {}
abstract class OfflineFirstWithRestModel extends OfflineFirstModel with RestModel {}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class RestOfflineQueueClient extends http.BaseClient {

@override
Future<http.StreamedResponse> send(http.BaseRequest request) async {
if (_ignorePattern != null && request.url.path.startsWith(_ignorePattern!)) {
if (_ignorePattern != null && request.url.path.startsWith(_ignorePattern)) {
return await _inner.send(request);
}

Expand Down

0 comments on commit 01ca5c5

Please sign in to comment.