Skip to content

Instantly share code, notes, and snippets.

View Tembeon's full-sized avatar

Artur Rafikov Tembeon

View GitHub Profile
@Tembeon
Tembeon / optional.dart
Last active July 30, 2025 08:56
A wrapper around value [T] to indicate presence or absence explicitly. Co-authored @lazurit11
/// {@template Optional}
///
/// A wrapper around value [T] to indicate presence or absence explicitly.
///
/// It solves the typical problem of copying objects that have nullable
/// fields:
///
/// ```dart
/// SomeState copyWith({
/// StateType? stateType,
@Tembeon
Tembeon / dart_analysis_options.yaml
Last active March 18, 2024 12:29
analysis_options.yaml for both Dart and Flutter projects that I use
include: package:lints/recommended.yaml
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "test/.test_coverage.dart"
- "bin/cache/**"
# For more information see: