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
The length rules should allow custom type support without initializing the rules with dynamic type
MinLengthRule<MyType>(10)
Current Behavior
If we want to use a custom type, we have to initialize it explicitly with dynamic type
MinLengthRule<dynamic>(10)
We should avoid using dynamic as much as possible.
Possible Solution
Add an interface that provides the length getter or length setter and use the interface for custom types.
Context
Using dynamic doesn't allow for compile time checks that maybe used in other parts of the application.
We should avoid using dynamic as much as possible.
Your Environment
Version used: 0.4.0+2
Flutter/Dart version: 2.1.0-12.2.pre/2.13.0
The text was updated successfully, but these errors were encountered:
Expected Behavior
The length rules should allow custom type support without initializing the rules with dynamic type
Current Behavior
If we want to use a custom type, we have to initialize it explicitly with dynamic type
We should avoid using dynamic as much as possible.
Possible Solution
Add an interface that provides the length getter or length setter and use the interface for custom types.
Context
Using dynamic doesn't allow for compile time checks that maybe used in other parts of the application.
We should avoid using dynamic as much as possible.
Your Environment
The text was updated successfully, but these errors were encountered: