Skip to content

Commit

Permalink
Make constructor parameters final.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aku committed Oct 3, 2023
1 parent ab0d695 commit 62dad15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/features/auth/presentation/pages/auth_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
class AuthPage extends StatefulWidget {
// user id of last logged in user to determine if it is a fresh login or not
final String? lastLoggedInUserId;
late FingerPrintAuthRepository fingerPrintAuthRepository;
late final FingerPrintAuthRepository fingerPrintAuthRepository;

AuthPage({Key? key, this.lastLoggedInUserId}) : super(key: key) {
fingerPrintAuthRepository = sl<FingerPrintAuthRepository>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:flutter_quill/flutter_quill.dart';
import 'package:flutter_quill_extensions/flutter_quill_extensions.dart';

class ReadOnlyEditor extends StatelessWidget {
QuillController? controller;
final QuillController? controller;
final FocusNode _focusNode = FocusNode();

ReadOnlyEditor({Key? key, required this.controller}) : super(key: key);
Expand Down

0 comments on commit 62dad15

Please sign in to comment.