onStart method

  1. @override
Future<void> onStart()
override

Called when the node is started. This is where you should initialize your node. If you are using a stateful node, your state was already loaded by this point

Implementation

@override
Future<void> onStart() async {
  _db = await GoogleCloudFirestoreDatabase.create();
  PLogger.modifiers.add("@(#f5d442) &r ");
  logger.verbose(
      "Project ID: &f${(_db as GoogleCloudFirestoreDatabase).project}");
  logger.verbose(
      "Database: &f${(_db as GoogleCloudFirestoreDatabase).database}");
  PLogger.modifiers.remove("@(#f5d442) &r ");
  logger.verbose("Firestore Database &aOnline");
}