mirror of
https://github.com/flutter/flutter
synced 2024-08-24 18:36:03 +00:00
Add an override annotation to the lineTerminator setter in the MemoryStdout fake class (#143646)
This is required by a new API recently added to Dart. See https://github.com/flutter/flutter/issues/143614
This commit is contained in:
parent
8a5efa53d8
commit
8036488776
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue