Ambiguous Enum Conflict in FlutterFlow: A member named 'serialize' is defined in extension 'FFEnumExtensions'

Project Settings

Hi, I’m encountering the following error in my FlutterFlow project:

In my project, I have two enums:

  1. A primary enum that I use in FFAppState.

  2. Another enum from a third-party library.

It seems that both files define the FFEnumExtensions extension with the serialize() method, causing a conflict.

This error
A member named 'serialize' is defined in extension 'FFEnumExtensions' and extension 'FFEnumExtensions', and none are more specific.

How can I resolve this conflict in FlutterFlow to avoid ambiguity?

What have you tried so far?

I tried commenting the same enum import via vscode but it's not worth it if there's more development in flutterflow

Did you check FlutterFlow's Documentation for this topic?
No
2
2 replies