539cccd823
This can collide if the user defines a name field on the enum, so prefix it with a '#'. Similarly, also prefix index, though this hasn't caused any known issues yet. Fixes: https://github.com/flutter/flutter/issues/103656 Change-Id: If95b997ed1d24fccaab630554a09030476191fbf TEST=Updated existing tests Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245082 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Liam Appelbe <liama@google.com>