read<V> method

  1. @override
V? read<V>(
  1. dynamic attribute
)
override

Returns the current value for a related attribute, if available.

Implementation

@override
V? read<V>(dynamic attribute) {
  if (attribute is DraftModeEntityField<TEntity, V>) {
    return attribute.read(entity);
  }
  return attribute as V?;
}