createObjectType method Null safety

Future<void> createObjectType()

This method is called to create or modify an object type, define a set of storage objects, and store data generated by the application.

Implementation

Future<void> createObjectType() async {
  try {
    return await _methodChannel.invokeMethod<void>(
      _MethodConstants.CREATE_OBJECT_TYPE,
      <String, dynamic>{},
    );
  } catch (e) {
    throw AGConnectCloudDBException._from(e);
  }
}