mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix missed ignores (#79071)
This commit is contained in:
parent
c1e1343d1d
commit
99023f0686
@ -151,10 +151,10 @@ class AutomaticNotchedShape extends NotchedShape {
|
||||
final ShapeBorder? guest;
|
||||
|
||||
@override
|
||||
Path getOuterPath(Rect hostRect, Rect? guestRect) { // ignore: avoid_renaming_method_parameters, the
|
||||
// parameters are renamed over the baseclass because they would clash
|
||||
// with properties of this object, and the use of all four of them in
|
||||
// the code below is really confusing if they have the same names.
|
||||
Path getOuterPath(Rect hostRect, Rect? guestRect) { // ignore: avoid_renaming_method_parameters
|
||||
// The parameters of this method are renamed over the baseclass because they
|
||||
// would clash with properties of this object, and the use of all four of
|
||||
// them in the code below is really confusing if they have the same names.
|
||||
final Path hostPath = host.getOuterPath(hostRect);
|
||||
if (guest != null && guestRect != null) {
|
||||
final Path guestPath = guest!.getOuterPath(guestRect);
|
||||
|
||||
@ -68,7 +68,6 @@ void main() {
|
||||
LogicalKeyboardKey.keyC,
|
||||
LogicalKeyboardKey.keyD,
|
||||
);
|
||||
// ignore: prefer_const_literals_to_create_immutables, https://github.com/dart-lang/linter/issues/2026
|
||||
final LogicalKeySet setFromSet = LogicalKeySet.fromSet(<LogicalKeyboardKey>{
|
||||
LogicalKeyboardKey.keyA,
|
||||
LogicalKeyboardKey.keyB,
|
||||
@ -124,7 +123,6 @@ void main() {
|
||||
LogicalKeyboardKey.keyB,
|
||||
LogicalKeyboardKey.keyA,
|
||||
);
|
||||
// ignore: prefer_const_literals_to_create_immutables, https://github.com/dart-lang/linter/issues/2026
|
||||
final LogicalKeySet set4 = LogicalKeySet.fromSet(<LogicalKeyboardKey>{
|
||||
LogicalKeyboardKey.keyD,
|
||||
LogicalKeyboardKey.keyC,
|
||||
@ -140,7 +138,6 @@ void main() {
|
||||
expect(map.containsKey(LogicalKeySet(LogicalKeyboardKey.keyA)), isTrue);
|
||||
expect(
|
||||
set2,
|
||||
// ignore: prefer_const_literals_to_create_immutables, https://github.com/dart-lang/linter/issues/2026
|
||||
equals(LogicalKeySet.fromSet(<LogicalKeyboardKey>{
|
||||
LogicalKeyboardKey.keyA,
|
||||
LogicalKeyboardKey.keyB,
|
||||
|
||||
@ -8,8 +8,6 @@ import 'logger.dart';
|
||||
import 'platform.dart';
|
||||
import 'terminal.dart';
|
||||
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
const String fire = '🔥';
|
||||
const String image = '🖼️';
|
||||
const int maxLineWidth = 84;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user