You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final someString ='some-decoded-id-in-the-middle';
final parts = someString.split('-');
assert(parts.length ==6, 'Incorrect format');
return parts[2];
}
Problem
Some of the rules are of dubious benefit.
- avoid-accessing-collections-by-constant-index
Question is - how we'll be process such cases?
- avoid-explicit-type-declaration
I used to avoid reduntant getter like this:
I have to declare type explicitly. Will it work with this rule?
What about situations, when we have many private widgets for one screen? They are not reusable and have to be private.
- avoid-long-functions:
Does it rule work also for
build
method?The text was updated successfully, but these errors were encountered: