Skip to content

Commit

Permalink
Add an override annotation to the lineTerminator setter in the Memory…
Browse files Browse the repository at this point in the history
…Stdout fake class (#143646)

This is required by a new API recently added to Dart.

See flutter/flutter#143614
  • Loading branch information
jason-simmons authored Feb 17, 2024
1 parent 8a5efa5 commit 8036488
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/flutter_tools/test/src/fakes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ class MemoryStdout extends MemoryIOSink implements io.Stdout {
@override
// ignore: override_on_non_overriding_member
String get lineTerminator => '\n';
@override
// ignore: override_on_non_overriding_member
set lineTerminator(String value) {
throw UnimplementedError('Setting the line terminator is not supported');
}
Expand Down

0 comments on commit 8036488

Please sign in to comment.