create static method

RecorderBookmarks? create(
  1. String path
)

Creates a RecorderBookmarks instance for the provided folder path.

The returned instance is bound to the directory that contains .gm and .mp4 log files. If creating the instance fails (for example when the path is invalid), the method returns null.

Parameters

  • path: The absolute path to the folder containing recordings.

Returns

Implementation

static RecorderBookmarks? create(final String path) {
  final String resultString = GemKitPlatform.instance.callCreateObject(
    jsonEncode(<String, String>{'class': 'RecorderBookmarks', 'args': path}),
  );
  final dynamic decodedVal = jsonDecode(resultString);

  if (decodedVal['gemApiError'] != 0) {
    return null;
  }
  return RecorderBookmarks.init(decodedVal['result']);
}