...

/

Extensions: Handling Conflicts

Extensions: Handling Conflicts

Learn to handle conflicts in similar named extensions.

What Is a Conflict?

Imagine that you have a library/file to hold all common extensions of a project. Let’s say this file is called ‘extensions_lib.dart’.

The ‘extensions_lib’ has two extensions:

  • An extension on List type named MyList.
  • An extension on double type named MyDouble.

...