tocamelCase function

String tocamelCase(
  1. String? fieldName
)

Converts field name to camelCase format

Implementation

String tocamelCase(String? fieldName) => fieldName != null
    ? fieldName.length == 1
        ? fieldName.toLowerCase()
        : fieldName.substring(0, 1).toLowerCase() + fieldName.substring(1)
    : '';