onCreate method

  1. @mustCallSuper
dynamic onCreate(
  1. Map data
)

Implementation

@mustCallSuper
onCreate(Map data) async {
  Map item = data[itemName] ?? {};
  await collection(item[indexName].toString()).set(item, keepData: false);
}