flutter_smart_generics 1.0.1
flutter_smart_generics: ^1.0.1 copied to clipboard
A collection of reusable generic utilities and widgets to boost productivity and scalability in Flutter development.
We analyzed this package 7 hours ago, and awarded it 150 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
9 out of 41 API elements (22.0 %) have documentation comments.
Some symbols that are missing documentation: comparator, debounce_throttle, debounce_throttle.Debouncer.Debouncer.new, debounce_throttle.Debouncer.action, debounce_throttle.Debouncer.call.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
INFO: Dangling library doc comment.
lib/core/comparator.dart:1:1
╷
1 │ ┌ /// Sorts a list of items based on a specified key selector function.
2 │ │ ///
3 │ │ /// This function returns a new sorted list without modifying the original list.
4 │ │ /// The sorting is performed using the provided [keySelector] function, which
5 │ │ /// extracts a [Comparable] key from each item. You can specify whether the
6 │ │ /// sorting should be in ascending (default) or descending order by setting
7 │ │ /// the [descending] parameter.
8 │ │ ///
9 │ │ /// This utility is generic and can be used with any type [T], as long as the
10 │ │ /// [keySelector] returns a [Comparable] value. It is efficient for small to
│ └─────────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/core/comparator.dart
INFO: Dangling library doc comment.
lib/core/result.dart:1:1
╷
1 │ ┌ /// A sealed class representing the result of an operation, which can be either a [Success] or a [Failure].
2 │ │ ///
3 │ │ /// The [Result] class is a generic abstraction for handling operations that can succeed or fail,
4 │ │ /// providing a unified way to represent both outcomes. This pattern is commonly used to avoid
5 │ │ /// throwing exceptions and to make error handling explicit and type-safe.
6 │ │ ///
7 │ │ /// ## Usage
8 │ │ ///
9 │ │ /// You can create a [Result] using the provided factory constructors:
10 │ │ ///
11 │ │ /// - `Result.success(data)` for a successful result.
│ └────────────────────────────────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/core/result.dart
10/10 points: All of the package dependencies are supported in the latest version
No dependencies.
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
material_color_utilities |
- | 0.13.0 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.2 | |
vector_math |
- | 2.2.0 | 2.3.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.12, Flutter 3.41.6, Dart 3.11.4.
Check the analysis log for details.