Skip to content

Commit

Permalink
test: make travis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jogboms committed Nov 9, 2018
1 parent 442db07 commit f22c78c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
8 changes: 3 additions & 5 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
# in sync with this file.

analyzer:
language:
enableSuperMixins: true
strong-mode:
implicit-dynamic: false
errors:
Expand All @@ -34,11 +32,11 @@ analyzer:
# allow having TODOs in the code
todo: ignore
exclude:
- 'bin/cache/**'
- "bin/cache/**"
# the following two are relative to the stocks example and the flutter package respectively
# see https://github.com/dart-lang/sdk/issues/28463
- 'lib/i18n/stock_messages_*.dart'
- 'lib/src/http/**'
- "lib/i18n/stock_messages_*.dart"
- "lib/src/http/**"

linter:
rules:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ class OfflineBuilderState extends State<OfflineBuilder> {
}

class OfflineBuilderError extends Error {
final Object error;

OfflineBuilderError(this.error);

final Object error;

@override
String toString() => error.toString();
}
4 changes: 2 additions & 2 deletions lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class StreamTransformers {
StreamTransformer<ConnectivityResult, ConnectivityResult> debounce(
Duration debounceDuration,
) {
return StreamTransformer.fromHandlers<ConnectivityResult,
ConnectivityResult>(
return StreamTransformer<ConnectivityResult,
ConnectivityResult>.fromHandlers(
handleData:
(ConnectivityResult data, EventSink<ConnectivityResult> sink) {
if (_seenFirstData) {
Expand Down
10 changes: 5 additions & 5 deletions test/flutter_offline_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,17 @@ void main() {
}

class TestConnectivityService extends ConnectivityService {
StreamController<ConnectivityResult> _controller;
ConnectivityResult _result = ConnectivityResult.none;
final ConnectivityResult initialConnection;

TestConnectivityService([this.initialConnection]) {
_result = initialConnection;
_controller = StreamController.broadcast<ConnectivityResult>(
_controller = StreamController<ConnectivityResult>.broadcast(
onListen: () => _controller.add(_result),
);
}

StreamController<ConnectivityResult> _controller;
ConnectivityResult _result = ConnectivityResult.none;
final ConnectivityResult initialConnection;

set result(ConnectivityResult result) {
_result = result;
_controller.add(result);
Expand Down

0 comments on commit f22c78c

Please sign in to comment.