pathModel method

List<String>? pathModel(
  1. String modelName
)

Returns a path for the specified model name, which will be under state/models, or state/roots if it ends in Root.

Implementation

List<String>? pathModel(String modelName) {
  if(modelName.contains(".")) {
    return null;
  }
  final filename = "${convertMixedToSnake(modelName)}.dart";
  var path = modelsPath;
  if(modelName.endsWith(AFCodeGenerator.rootSuffix)) {
    path = rootsPath;
  }
  return _createPath(path, filename);
}