08dbe87819
this implements the same behavior for dart that is already implemented in the typescript version
this implements the same behavior for dart that is already implemented in the typescript version