Skip to content

Commit

Permalink
[flutter_migrate] Implement lineTerminator in the MemoryStdout fake (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Feb 17, 2024
1 parent f865baf commit 0af905d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/flutter_migrate/test/src/fakes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ class MemoryStdout extends MemoryIOSink implements io.Stdout {

bool _hasTerminal = true;

@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');
}

@override
io.IOSink get nonBlocking => this;

Expand Down

0 comments on commit 0af905d

Please sign in to comment.