ResourceIdentifier constructor

const ResourceIdentifier([
  1. Object? metadata
])

Creates a ResourceIdentifier instance.

This annotation can be placed as an annotation on functions whose statically resolved calls should be registered together with the optional metadata information.

Implementation

const ResourceIdentifier([this.metadata])
    : assert(
        metadata == null ||
            metadata is bool ||
            metadata is num ||
            metadata is String,
        'Valid metadata types are bool, int, double, and String.',
      );