getFuncName function

String getFuncName(
  1. TableCollectionBase tableCollection,
  2. bool ifExist,
  3. SqfEntityTableBase _table
)

Implementation

String getFuncName(TableCollectionBase tableCollection, bool ifExist, SqfEntityTableBase _table) {
  String funcName = _table.tableName == tableCollection.childTable.tableName ? toPluralName(tableCollection.childTableField.fieldName!) : toPluralName(tableCollection.childTable.modelName!);
  return funcName += ifExist ? 'By${tableCollection.childTableField.fieldName}' : '';
}