mirror of
https://github.com/flutter/samples.git
synced 2026-03-22 04:17:50 +00:00
[compass_app] Mark classes used for namespacing as abstract final (#2540)
As they are just used for namespacing static properties, these classes shouldn't be extended, implemented, or instantiated.
This commit is contained in:
@@ -8,7 +8,7 @@ import 'dart:io';
|
||||
import '../model/activity/activity.dart';
|
||||
import '../model/destination/destination.dart';
|
||||
|
||||
class Assets {
|
||||
abstract final class Assets {
|
||||
static const _activities = '../app/assets/activities.json';
|
||||
static const _destinations = '../app/assets/destinations.json';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import '../model/user/user.dart';
|
||||
|
||||
class Constants {
|
||||
abstract final class Constants {
|
||||
/// Email for the hardcoded login.
|
||||
static const email = 'email@example.com';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user