Can you can make extension methods in dart? like you can in C# e.g.:
void swap(this CssClassSet ccs, String oldClass, String newClass)
{
ccs.remove(oldClass);
ccs.add(newClass);
}
is this sort of thing possible with Dart? I would like to extend CssClassSet to have a swap(String oldClass, String newClass)
method.