Unverified Commit d5cbb36c authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Migrate remaining files to super parameters (#101919)

parent 95e52dac
...@@ -55,7 +55,7 @@ class GradientPerfHomePage extends StatelessWidget { ...@@ -55,7 +55,7 @@ class GradientPerfHomePage extends StatelessWidget {
} }
class _PainterPage extends StatefulWidget { class _PainterPage extends StatefulWidget {
const _PainterPage({Key? key, required this.title, required this.factory}) : super(key: key); const _PainterPage({super.key, required this.title, required this.factory});
final String title; final String title;
final CustomPaintFactory factory; final CustomPaintFactory factory;
...@@ -65,8 +65,8 @@ class _PainterPage extends StatefulWidget { ...@@ -65,8 +65,8 @@ class _PainterPage extends StatefulWidget {
} }
class RecreateDynamicPainterPage extends _PainterPage { class RecreateDynamicPainterPage extends _PainterPage {
const RecreateDynamicPainterPage({Key? key}) const RecreateDynamicPainterPage({super.key})
: super(key: key, title: 'Recreate Dynamic Gradients', factory: makePainter); : super(title: 'Recreate Dynamic Gradients', factory: makePainter);
static CustomPainter makePainter(double f) { static CustomPainter makePainter(double f) {
return RecreatedDynamicGradients(baseFactor: f); return RecreatedDynamicGradients(baseFactor: f);
...@@ -74,8 +74,8 @@ class RecreateDynamicPainterPage extends _PainterPage { ...@@ -74,8 +74,8 @@ class RecreateDynamicPainterPage extends _PainterPage {
} }
class RecreateConsistentPainterPage extends _PainterPage { class RecreateConsistentPainterPage extends _PainterPage {
const RecreateConsistentPainterPage({Key? key}) const RecreateConsistentPainterPage({super.key})
: super(key: key, title: 'Recreate Same Gradients', factory: makePainter); : super(title: 'Recreate Same Gradients', factory: makePainter);
static CustomPainter makePainter(double f) { static CustomPainter makePainter(double f) {
return RecreatedConsistentGradients(baseFactor: f); return RecreatedConsistentGradients(baseFactor: f);
...@@ -83,8 +83,8 @@ class RecreateConsistentPainterPage extends _PainterPage { ...@@ -83,8 +83,8 @@ class RecreateConsistentPainterPage extends _PainterPage {
} }
class StaticConsistentPainterPage extends _PainterPage { class StaticConsistentPainterPage extends _PainterPage {
const StaticConsistentPainterPage({Key? key}) const StaticConsistentPainterPage({super.key})
: super(key: key, title: 'Reuse Same Gradients', factory: makePainter); : super(title: 'Reuse Same Gradients', factory: makePainter);
static CustomPainter makePainter(double f) { static CustomPainter makePainter(double f) {
return StaticConsistentGradients(baseFactor: f); return StaticConsistentGradients(baseFactor: f);
......
...@@ -21,20 +21,14 @@ import 'mixins.dart'; ...@@ -21,20 +21,14 @@ import 'mixins.dart';
class FlutterDebugAdapter extends DartDebugAdapter<FlutterLaunchRequestArguments, FlutterAttachRequestArguments> class FlutterDebugAdapter extends DartDebugAdapter<FlutterLaunchRequestArguments, FlutterAttachRequestArguments>
with PidTracker { with PidTracker {
FlutterDebugAdapter( FlutterDebugAdapter(
ByteStreamServerChannel channel, { super.channel, {
required this.fileSystem, required this.fileSystem,
required this.platform, required this.platform,
bool ipv6 = false, super.ipv6,
bool enableDds = true, super.enableDds,
bool enableAuthCodes = true, super.enableAuthCodes,
Logger? logger, super.logger,
}) : super( });
channel,
ipv6: ipv6,
enableDds: enableDds,
enableAuthCodes: enableAuthCodes,
logger: logger,
);
FileSystem fileSystem; FileSystem fileSystem;
Platform platform; Platform platform;
......
...@@ -21,20 +21,14 @@ import 'mixins.dart'; ...@@ -21,20 +21,14 @@ import 'mixins.dart';
class FlutterTestDebugAdapter extends DartDebugAdapter<FlutterLaunchRequestArguments, FlutterAttachRequestArguments> class FlutterTestDebugAdapter extends DartDebugAdapter<FlutterLaunchRequestArguments, FlutterAttachRequestArguments>
with PidTracker, TestAdapter { with PidTracker, TestAdapter {
FlutterTestDebugAdapter( FlutterTestDebugAdapter(
ByteStreamServerChannel channel, { super.channel, {
required this.fileSystem, required this.fileSystem,
required this.platform, required this.platform,
bool ipv6 = false, super.ipv6,
bool enableDds = true, super.enableDds,
bool enableAuthCodes = true, super.enableAuthCodes,
Logger? logger, super.logger,
}) : super( });
channel,
ipv6: ipv6,
enableDds: enableDds,
enableAuthCodes: enableAuthCodes,
logger: logger,
);
FileSystem fileSystem; FileSystem fileSystem;
Platform platform; Platform platform;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment