EmbeddableObject constructor

EmbeddableObject(
  1. String type, {
  2. required bool inline,
  3. Map<String, dynamic> data = const {},
})

Implementation

EmbeddableObject(
  this.type, {
  required this.inline,
  Map<String, dynamic> data = const {},
})  : assert(!data.containsKey(kTypeKey),
          'The "$kTypeKey" key is reserved in $EmbeddableObject data and cannot be used.'),
      assert(!data.containsKey(kInlineKey),
          'The "$kInlineKey" key is reserved in $EmbeddableObject data and cannot be used.'),
      _data = Map.from(data);