create method

  1. @override
Future<void> create(
  1. String name, {
  2. dynamic fromEncodable(
    1. Map<String, dynamic>
    )?,
})

Creates a partition

  • name: The partition name
  • fromEncodable: The function that converts between the Map representation of the object and the object itself.

Implementation

@override
Future<void> create(String name,
    {dynamic Function(Map<String, dynamic>)? fromEncodable}) {
  if (!_slots.containsKey(name)) {
    _slots[name] = <String, E>{};
  }

  return Future.value();
}