enable lint unnecessary_const (#19342)

This commit is contained in:
Alexandre Ardhuin
2018-07-16 21:43:48 +02:00
committed by GitHub
parent d10e46ea65
commit cc1cf13eec
556 changed files with 40458 additions and 40457 deletions

View File

@@ -14,9 +14,9 @@ class PlatformChannel extends StatefulWidget {
class _PlatformChannelState extends State<PlatformChannel> {
static const MethodChannel methodChannel =
const MethodChannel('samples.flutter.io/battery');
MethodChannel('samples.flutter.io/battery');
static const EventChannel eventChannel =
const EventChannel('samples.flutter.io/charging');
EventChannel('samples.flutter.io/charging');
String _batteryLevel = 'Battery level: unknown.';
String _chargingStatus = 'Battery status: unknown.';