fix: dart2 mustache templates minor improvements (#9539)

* fix: prefer_is_not_empty linter suggestion

* fix: annotate_overrides linter suggestion

* chore: update samples
This commit is contained in:
alespour
2021-05-24 05:01:53 +02:00
committed by GitHub
parent 22db406c35
commit e360228a76
8 changed files with 8 additions and 4 deletions
@@ -10,6 +10,7 @@ class ApiException implements Exception {
Exception innerException;
StackTrace stackTrace;
@override
String toString() {
if (message == null) {
return 'ApiException';
@@ -19,7 +19,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
final params = <QueryParam>[];
// preconditions
if (name != null && !name.isEmpty && value != null) {
if (name != null && name.isNotEmpty && value != null) {
if (value is List) {
// get the collection format, default: csv
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)
@@ -19,6 +19,7 @@ class ApiException implements Exception {
Exception innerException;
StackTrace stackTrace;
@override
String toString() {
if (message == null) {
return 'ApiException';
@@ -28,7 +28,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
final params = <QueryParam>[];
// preconditions
if (name != null && !name.isEmpty && value != null) {
if (name != null && name.isNotEmpty && value != null) {
if (value is List) {
// get the collection format, default: csv
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)
@@ -19,6 +19,7 @@ class ApiException implements Exception {
Exception innerException;
StackTrace stackTrace;
@override
String toString() {
if (message == null) {
return 'ApiException';
@@ -28,7 +28,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
final params = <QueryParam>[];
// preconditions
if (name != null && !name.isEmpty && value != null) {
if (name != null && name.isNotEmpty && value != null) {
if (value is List) {
// get the collection format, default: csv
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)
@@ -19,6 +19,7 @@ class ApiException implements Exception {
Exception innerException;
StackTrace stackTrace;
@override
String toString() {
if (message == null) {
return 'ApiException';
@@ -28,7 +28,7 @@ Iterable<QueryParam> _convertParametersForCollectionFormat(
final params = <QueryParam>[];
// preconditions
if (name != null && !name.isEmpty && value != null) {
if (name != null && name.isNotEmpty && value != null) {
if (value is List) {
// get the collection format, default: csv
collectionFormat = (collectionFormat == null || collectionFormat.isEmpty)