Skip to content

Commit 012c156

Browse files
committed
⚡️ Final classes
1 parent f1d5d51 commit 012c156

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

example/lib/models/picker_method.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ List<PickMethod> pickMethods(BuildContext context) {
182182
}
183183

184184
/// Define a regular pick method.
185-
class PickMethod {
185+
final class PickMethod {
186186
const PickMethod({
187187
required this.icon,
188188
required this.name,

lib/src/constants/config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'type_defs.dart';
1313
/// Configurations for the [CameraPicker].
1414
/// [CameraPicker] 的配置项
1515
/// {@endtemplate}
16-
class CameraPickerConfig {
16+
final class CameraPickerConfig {
1717
const CameraPickerConfig({
1818
this.enableRecording = false,
1919
this.onlyEnableRecording = false,

lib/src/constants/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import '../delegates/camera_picker_text_delegate.dart';
66

77
export 'package:photo_manager/photo_manager.dart';
88

9-
class Constants {
9+
final class Constants {
1010
const Constants._();
1111

1212
static CameraPickerTextDelegate textDelegate =

lib/src/widgets/builder/tween_animation_builder_2.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import 'package:flutter/material.dart';
66

7-
class TweenAnimationBuilder2<A, B> extends StatelessWidget {
7+
final class TweenAnimationBuilder2<A, B> extends StatelessWidget {
88
const TweenAnimationBuilder2({
99
super.key,
1010
required this.firstTween,

lib/src/widgets/camera_focus_point.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
66

77
import 'builder/tween_animation_builder_2.dart';
88

9-
class CameraFocusPoint extends StatelessWidget {
9+
final class CameraFocusPoint extends StatelessWidget {
1010
const CameraFocusPoint({
1111
super.key,
1212
required this.size,
@@ -41,7 +41,7 @@ class CameraFocusPoint extends StatelessWidget {
4141

4242
/// A [CustomPaint] that draws the exposure point with four arcs and one circle.
4343
/// 包含了四条弧及一个圆的曝光点绘制。
44-
class CameraFocusPointPainter extends CustomPainter {
44+
final class CameraFocusPointPainter extends CustomPainter {
4545
const CameraFocusPointPainter({
4646
required this.size,
4747
required this.color,

lib/src/widgets/camera_progress_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
77
import '../constants/styles.dart';
88
import '../internals/methods.dart';
99

10-
class CameraProgressButton extends StatefulWidget {
10+
final class CameraProgressButton extends StatefulWidget {
1111
const CameraProgressButton({
1212
super.key,
1313
required this.isAnimating,

0 commit comments

Comments
 (0)