Interoperable.fromId constructor

  1. @visibleForTesting
const Interoperable.fromId(
  1. String id
)

Creates an object from an existing ID.

The opposite of Interoperable.new. Used when the platform creats an object and needs a Dart counterpart.

Marked as visibleForTesting because it's generally not what an API user should use. However, it can be used to create custom interoperables.

Implementation

@visibleForTesting
const Interoperable.fromId(this.id);