ClientMetadata constructor

ClientMetadata({
  1. required String name,
  2. String? domain,
  3. String version = '1.0.0',
  4. Map<String, String> attributes = const {},
})

Implementation

ClientMetadata({
  required this.name,
  String? domain,
  this.version = '1.0.0',
  Map<String, String> attributes = const {},
}) : domain = domain ?? name,
     attributes = Map.unmodifiable(Map.of(attributes));