addedToList<V> method Null safety

EmpireStateChanged addedToList<V>(
  1. V newValue,
  2. {String? propertyName}
)

A factory method which creates a single EmpireStateChanged object with a description describing what value was added to the list

Implementation

static EmpireStateChanged addedToList<V>(V newValue,
        {String? propertyName}) =>
    EmpireStateChanged(newValue, null,
        propertyName: propertyName, description: 'Added To List: $newValue');