initMockImpl method

  1. @protected
void initMockImpl({
  1. required RustLibApi api,
})
inherited

This is only intended to be used by automatically generated code, instead of developers.

Implementation

@protected
void initMockImpl({
  required A api,
}) {
  if (__state != null) {
    throw StateError('Should not initialize flutter_rust_bridge twice');
  }

  __state = _FakeEntrypointState(api: api);
}