Extensions: Handling Conflicts
Learn to handle conflicts in similar named extensions.
We'll cover the following...
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 namedMyList
. - An extension on
double
type namedMyDouble
.