shashankmathur8

Results 5 comments of shashankmathur8

Error (Xcode): lib/app/modules/inventory/models/consignmentSchema.realm.dart:330:8: Error: Expected an identifier, but got 'switch'. Could not build the application for the simulator. Error launching application on iPad (10th generation).

> Switch expressions should be supported - can you make sure you've updated to the current versions of dart and flutter? Yes, Current version is 3.22.0 , I've checked and...

> dart --version Dart SDK version: 3.4.3 (stable) (Tue Jun 4 19:51:39 2024 +0000) on "macos_arm64"

> What is the min SDK version in your pubspec.yaml? environment: sdk: '>=3.3.1

Found the issue, Switch expressions require a [language version](https://dart.dev/guides/language/evolution#language-versioning) of at least 3.0, In my pubspec.yaml the environment sdk version was sdk: '>=2.19.0 =3.0.0