submit method

void submit({
  1. CompletionCallback? completionCallback,
})

Implementation

void submit({CompletionCallback? completionCallback}) {
  if (_submitted) {
    throw StateError('CommandBuffer has already been submitted.');
  }
  String? error = _submit(completionCallback);
  if (error != null) {
    throw Exception(error);
  }
  _submitted = true;
}