Update super key

This commit is contained in:
Ashita Prasad
2023-11-02 05:07:38 +05:30
parent 81eec9bed2
commit 50477058f2
9 changed files with 49 additions and 48 deletions

View File

@ -7,8 +7,8 @@ import 'package:apidash/consts.dart';
class CollectionPane extends ConsumerStatefulWidget {
const CollectionPane({
Key? key,
}) : super(key: key);
super.key,
});
@override
ConsumerState<CollectionPane> createState() => _CollectionPaneState();
@ -85,8 +85,8 @@ class _CollectionPaneState extends ConsumerState<CollectionPane> {
class RequestList extends ConsumerStatefulWidget {
const RequestList({
Key? key,
}) : super(key: key);
super.key,
});
@override
ConsumerState<RequestList> createState() => _RequestListState();
@ -154,10 +154,10 @@ class _RequestListState extends ConsumerState<RequestList> {
class RequestItem extends ConsumerStatefulWidget {
const RequestItem({
super.key,
required this.id,
required this.requestModel,
Key? key,
}) : super(key: key);
});
final String id;
final RequestModel requestModel;

View File

@ -8,7 +8,7 @@ import 'package:apidash/models/models.dart';
import 'package:apidash/consts.dart';
class EditRequestHeaders extends ConsumerStatefulWidget {
const EditRequestHeaders({Key? key}) : super(key: key);
const EditRequestHeaders({super.key});
@override
ConsumerState<EditRequestHeaders> createState() => EditRequestHeadersState();

View File

@ -8,7 +8,7 @@ import 'package:apidash/models/models.dart';
import 'package:apidash/consts.dart';
class EditRequestURLParams extends ConsumerStatefulWidget {
const EditRequestURLParams({Key? key}) : super(key: key);
const EditRequestURLParams({super.key});
@override
ConsumerState<EditRequestURLParams> createState() =>

View File

@ -7,8 +7,8 @@ import 'url_card.dart';
class RequestEditorPane extends ConsumerStatefulWidget {
const RequestEditorPane({
Key? key,
}) : super(key: key);
super.key,
});
@override
ConsumerState<RequestEditorPane> createState() => _RequestEditorPaneState();

View File

@ -4,7 +4,7 @@ import 'editor_pane/editor_pane.dart';
import 'collection_pane.dart';
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
const HomePage({super.key});
@override
HomePageState createState() => HomePageState();

View File

@ -112,10 +112,10 @@ class _DropdownButtonContentTypeState extends State<DropdownButtonContentType> {
class DropdownButtonCodegenLanguage extends StatefulWidget {
const DropdownButtonCodegenLanguage({
Key? key,
super.key,
this.codegenLanguage,
this.onChanged,
}) : super(key: key);
});
@override
State<DropdownButtonCodegenLanguage> createState() =>

View File

@ -4,9 +4,12 @@ import 'package:flutter/services.dart';
import 'package:apidash/consts.dart';
class TextFieldEditor extends StatefulWidget {
const TextFieldEditor(
{Key? key, required this.fieldKey, this.onChanged, this.initialValue})
: super(key: key);
const TextFieldEditor({
super.key,
required this.fieldKey,
this.onChanged,
this.initialValue,
});
final String fieldKey;
final Function(String)? onChanged;

View File

@ -4,10 +4,10 @@ import 'package:apidash/consts.dart';
class DashboardSplitView extends StatefulWidget {
const DashboardSplitView({
Key? key,
super.key,
required this.sidebarWidget,
required this.mainWidget,
}) : super(key: key);
});
final Widget sidebarWidget;
final Widget mainWidget;

View File

@ -51,8 +51,7 @@ class _MapTableState extends State<MapTable> {
)
.toList(),
),
...widget.map.entries
.map<TableRow>(
...widget.map.entries.map<TableRow>(
(entry) => TableRow(
children: [
TableCell(
@ -81,8 +80,7 @@ class _MapTableState extends State<MapTable> {
),
],
),
)
.toList(),
),
],
);
}