Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/src/constants/command_constants.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// Stores all the commands used throughout the app that
library;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this been added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto added by linter.

linter: "Dangling library doc comment. Add a 'library' directive after the library comment."

has no effect other than for the auto generated API reference (not sure what the difference is though). Would change the above comment to "//" or keep library.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guessing it means the file will be added under "Libraries" in the attached picture with all constants documented.
Skärmbild 2024-12-13 005419


const String ksDart = 'dart';
const String ksFlutter = 'flutter';
Expand All @@ -11,6 +12,7 @@ const String ksBuild = 'build';
const String ksBuildRunner = 'build_runner';
const String ksDeleteConflictOutputs = 'delete-conflicting-outputs';
const String ksDeleteConflictingOutputs = '--delete-conflicting-outputs';
const String ksNoPubGet = '--no-pub';
const String ksVersion = 'version';
const String ksEnableAnalytics = 'enable-analytics';
const String ksDisableAnalytics = 'disable-analytics';
Expand Down
3 changes: 3 additions & 0 deletions lib/src/models/config_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ class Config with _$Config {
/// the code.
@JsonKey(name: 'line_length') @Default(80) int lineLength,
@JsonKey(name: 'prefer_web') @Default(false) bool preferWeb,

/// Boolean value determining if build_runner should run pub get.
@JsonKey(name: 'offline_mode') @Default(false) bool offlineMode,
}) = _Config;

factory Config.fromJson(Map<String, dynamic> json) => _$ConfigFromJson(json);
Expand Down
145 changes: 95 additions & 50 deletions lib/src/models/config_model.freezed.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading