getBlocFileContent method

String getBlocFileContent(
  1. String screenName,
  2. String content
)

Implementation

String getBlocFileContent(String screenName, String content) {
  return content
      .replaceAll("<screen_name>", screenName)
      .replaceAll("<cubit_name>", screenName.cubitName)
      .replaceAll("<event_name>", screenName.eventName)
      .replaceAll("<state_name>", screenName.stateName)
      .replaceAll("<bloc_name>", screenName.blocName)
      .replaceAppName;
}