Results for “Enum”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Version changes
- Deprecate describeEnum and update EnumProperty to be type strict3.16.0deprecated
global method `describeEnum` has been deprecated. Previous uses of `describeEnum(Enum.something)` should use `Enum.something.name` instead. Remove `describeEnum`. Dart 2.17 introduced enhanced enums, which added `Enum
- Adding 'linux' and 'windows' to TargetPlatform enum1.17.0breaking
values were added to the `TargetPlatform` enum that could require additional cases in switch statements that switch on a `TargetPlatform` and don't include a `default:` case
- - Improve analysis of enums and switch.3.0.3bugfix
Improve analysis of enums and switch
- `flutter_tool` : Remove redundant enum types inside the enum definition scope3.44.0tooling
flutter_tool` : Remove redundant enum types inside the enum definition scope (Tooling, by @AbdeMohlbi
- - Fix Autovalidate enum references in fix data2.0.2bugfix
Autovalidate enum references in fix data
- - Fix Autovalidate enum references in fix data2.0.3bugfix
Autovalidate enum references in fix data
- Removal of describeEnum3.47.0removed
removed from the framework because it's redundant with the `name` getter on `Enum` which was introduced in `Dart 2.14`. Historically, Flutter used `describeEnum` to return
- - `dart analyze` throws errors when using enhance Enums feature.3.0.2bugfix
dart analyze` throws errors when using enhance Enums feature
- Update Vulkan enum values3.47.0improvement
Update Vulkan enum values (Other changes, by @chingjun
- [Flutter GPU] Document the formats.dart enums3.47.0improvement
Flutter GPU] Document the formats.dart enums (Other changes, by @bdero
- [Tool] Remove redundant name fields in an enum3.44.0tooling
Tool] Remove redundant name fields in an enum (Tooling, by @AbdeMohlbi
- Remove `name` field form `SupportedPlatform` enum3.38.0tooling
Remove `name` field form `SupportedPlatform` enum (Tooling, by @AbdeMohlbi). SupportedPlatform
- Added AppLifecycleState.hidden3.13.0breaking
hidden` state was added to the `AppLifecycleState` enum to denote when the application is not visible. The new state `AppLifecycleState.hidden` was added to the `AppLifecycleState` enum
- [tool] Refactor artifacts.dart to use enhanced enums and reduce duplication3.47.0platform
tool] Refactor artifacts.dart to use enhanced enums and reduce duplication (Windows, by @bkonyi
- Remove redundant name field form `TargetPlatform` and `XCDeviceEventInterface` enums3.41.0tooling
Remove redundant name field form `TargetPlatform` and `XCDeviceEventInterface` enums (Tooling, by @AbdeMohlbi). TargetPlatform XCDeviceEventInterface
- Update some semantics flags updated to use enum (engine, framework, web)3.38.0improvement
Update some semantics flags updated to use enum (engine, framework, web) (Material, by @hannah
- IconData class marked as final3.44.0breaking
shaking assets and native code. Instead of implementing `IconData`, such as with an `enum` that supports dot shorthand, type safety, and an automated `.values` list
- Customize tabs alignment using the new TabBar.tabAlignment property3.16.0breaking
TabBar.tabAlignment` property sets where a Material 3 `TabBar` places tabs. The `TabAlignment` enum has the following values: A Material 3 scrollable `TabBar` uses `TabAlignment.startOffset` as the default
- Use maxLengthEnforcement instead of maxLengthEnforced2.0.0breaking
instead of the now-deprecated `maxLengthEnforced`. * Added a `maxLengthEnforcement` parameter using the new enum type `MaxLengthEnforcement`, as a replacement for the now-deprecated boolean `maxLengthEnforced` parameter