I like the way static extensions are done in Haxe https://haxe.org/manual/lf-static-extension.html
Using macros you can auto enable them for all types in a project, package, or module.
And opposite to Dart you don't need to define the extension methods in special extension classes but regular utility classes or modules.