Clean up ignores that are not ignoring anything (#78493)
This commit is contained in:
committed by
GitHub
parent
65f232fd76
commit
a7e3b1a35d
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user