ComposeTargetId constructor

const ComposeTargetId({
  1. String? traitId,
  2. Type? type,
  3. Key? key,
  4. int? elementIndex,
})

Creates an instance of ComposeTargetId.

Either type or key must be set, or both.

Implementation

const ComposeTargetId({
  this.traitId,
  Type? type,
  Key? key,
  int? elementIndex,
}) : super(type: type, key: key, elementIndex: elementIndex);