init static method

Future<void> init(
  1. String applicationName
)

make sure you deleted all files from lib folder before run this function.

it will =>

  1. create project structure.
  2. add some required packages.
  3. add assets to projects.
  4. remove comments from pubspec.yaml .
  5. run pub get command

Implementation

static Future<void> init(String applicationName) async {
  Chaotic.applicationName = applicationName;
  await _createProjectStructure();
  await _addPackages();
  await _initYaml();
}