I used the appwrite cli types comand for Dart and it worked well but there was an error regarding enums. As you can see in the image below, it used firstOrNull() instead of firstOrNull for List.
TL;DR
Developers used the appwrite cli types command for Dart successfully, but encountered an error with enums using firstOrNull(). The correct syntax is firstOrNull for List.