-
## unrelated_type_cast
## Kind
Guard against errors.
## Bad Examples
```dart
final list = [];
final newList = list.cast(); //Bad
final map = list as Map; //Bad
```
## Good Examples …
-
## Problem
Supagen currently only supports Flutter, limiting its use for developers working with other frameworks.
## Solution
Add support for other frameworks like Next.js, Astro, and Tauri to m…
-
Using the following sample from the examples with a button added to perform a rebuild:
```dart
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State createState()…
-
Example https://github.com/flutter/packages/pull/7226 (this isn't related to Xcode beta, we're seeing it elsewhere like https://github.com/flutter/packages/pull/7422/checks?check_run_id=28830793413).
…
-
## `public_class_matches_filename`
## Description
contains a public class which does not match its filename in `PascalCase`.
## Details
Naming a class the same as its filename is a commo…
-
## unrelated_pattern_type
(Note: I'm having trouble thinking of a good name for this lint; feel free to replace this with something better).
## Description
The pattern can only match values o…
-
**Describe the rule you'd like to see implemented**
Warn if a raw color value like `Color(0xFF000000)` is used instead of an equivalent color constant (e.g. `Colors.black`)
It is fairly easy to acci…
-
Internal: b/376074365
The packages PR https://github.com/flutter/packages/pull/7587/checks which only updates the targeted SDK for example apps and makes some tweaks to the manifests as necessary to …
-
**Describe the rule you'd like to see implemented**
Lint that warns if debug only members/classes as defined by members/classes that start with the name `debug` or are annotated with `@debug` are u…
-
## `dart_style_todos`
Similar to [`flutter_style_todos`](https://dart.dev/tools/linter-rules/flutter_style_todos) but for repos in `dart-lang` org.
People could not longer be working on a projec…