Clean up ignores that are not ignoring anything (#78493)

This commit is contained in:
Michael Goderbauer
2021-03-19 15:32:46 -07:00
committed by GitHub
parent 65f232fd76
commit a7e3b1a35d
20 changed files with 15 additions and 37 deletions

View File

@@ -43,8 +43,8 @@ class PluginEventChannel<T> {
this.name, [
this.codec = const StandardMethodCodec(),
this.binaryMessenger,
]) : assert(name != null), // ignore: unnecessary_null_comparison
assert(codec != null); // ignore: unnecessary_null_comparison
]) : assert(name != null),
assert(codec != null);
/// The logical channel on which communication happens.
///
@@ -108,7 +108,7 @@ class _EventChannelHandler<T> {
this.codec,
this.controller,
this.messenger,
) : assert(messenger != null); // ignore: unnecessary_null_comparison
) : assert(messenger != null);
final String name;
final MethodCodec codec;

View File

@@ -205,7 +205,7 @@ class PluginRegistry extends Registrar {
'This feature was deprecated after v1.26.0-18.0.pre.'
)
BinaryMessenger? binaryMessenger,
]) : super(); // ignore: avoid_unused_constructor_parameters
]) : super();
/// Returns `this`. The argument is ignored.
@Deprecated(

View File

@@ -5,7 +5,7 @@
@TestOn('chrome') // Uses web-only Flutter SDK
import 'dart:async';
import 'dart:ui' as ui; // ignore: unused_import, it looks unused as web-only elements are the only elements used.
import 'dart:ui' as ui;
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';

View File

@@ -4,7 +4,7 @@
@TestOn('chrome') // Uses web-only Flutter SDK
import 'dart:ui' as ui; // ignore: unused_import, it looks unused as web-only elements are the only elements used.
import 'dart:ui' as ui;
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';