I\'m trying to create a static extension method on one of my classes (which is autogenerated, so I can\'t easily modify it). According to the docs, this should be possi
As James mentioned, you can't use the static method directly on the extended class as of today, the current solution to your problem would be:
extension Foo on String { String foo() => 'foo!'; } void main() { print('Hi'.foo()); }