Fix flutter lints for next major version #noissue
All checks were successful
/ build (push) Successful in 5m5s

This commit is contained in:
Varakh 2023-11-14 20:22:12 +01:00
parent 88b9d81bc2
commit 7e871bb4b1
4 changed files with 5 additions and 6 deletions

View file

@ -5,8 +5,8 @@ class RestServiceException extends ServiceException {
final int statusCode;
final dynamic responseBody;
RestServiceException(this.statusCode, {this.responseBody, String? message})
: super(code: ErrorCode.restError, message: message);
RestServiceException(this.statusCode, {this.responseBody, super.message = null})
: super(code: ErrorCode.restError);
@override
String toString() {

View file

@ -8,7 +8,7 @@ import '../services/dialog_service.dart';
class DialogManager extends StatefulWidget {
final Widget? child;
const DialogManager({Key? key, this.child}) : super(key: key);
const DialogManager({super.key, this.child});
@override
_DialogManagerState createState() => _DialogManagerState();

View file

@ -11,7 +11,7 @@ import '../util/logger.dart';
class LifeCycleManager extends StatefulWidget {
final Widget? child;
const LifeCycleManager({Key? key, this.child}) : super(key: key);
const LifeCycleManager({super.key, this.child});
@override
_LifeCycleManagerState createState() => _LifeCycleManagerState();

View file

@ -7,12 +7,11 @@ class MyAppBar extends AppBar {
static final List<Widget> aboutDisabledWidgets = [];
MyAppBar(
{Key? key,
{super.key,
required Widget title,
List<Widget>? actionWidgets,
bool enableAbout = true})
: super(
key: key,
title: Row(children: <Widget>[title]),
actions: _renderIconButtons(actionWidgets, enableAbout));