forked from loafle/openapi-generator-original
* Use isNotEmpty instead of length in dart2 validity checks In dart2 the preferred method of checking whether an object is empty or not is to use the .isNotEmpty property. An aspect that is now warned about by the linter. While not an issue in this particular case - testing length can also have negative performance implications for Iterable collections, which are not required to know or provide their length deterministically. * Prefer equals for default values in dart2 The dart2 linter complains about m({a: 1}) style assignments, preferring m({a = 1}) instead. Update the api_client generation to follow this. * Regenerate dart2 samples for mustache template changes