createProperty<T> method

Property<T> createProperty<T>(
  1. T value,
  2. bool isImmutable
)

Implementation

Property<T> createProperty<T>(T value, bool isImmutable) {
  return isImmutable
      ? ImmutableProperty<T>(value)
      : MutableProperty<T>(value);
}