# init method

Future init ()

Initializes database

## Implementation

    init() async {
      String path = await getDatabasesPath();
      path = join(path, 'notes.db');
      print("Entered path $path");

      return await openDatabase(path, version: 1,
          onCreate: (Database db, int version) async {
        await db.execute(
            'CREATE TABLE Notes (_id INTEGER PRIMARY KEY, content TEXT, date TEXT);');
        await db.execute(
            'CREATE TABLE Notifications (_id INTEGER PRIMARY KEY, note INTEGER, date1 TEXT);');
        print('New table created at $path');
      });
    }