addProp method

  1. @override
void addProp(
  1. dynamic propKey,
  2. dynamic value, [
  3. bool shouldAdd = true
])
override

Adds an arbitrary propKey/value pair if shouldAdd is true.

Is a noop if shouldAdd is false.

Related: addProps

Implementation

@override
void addProp(propKey, value, [bool shouldAdd = true]) =>
    throw UnimplementedError('@PropsMixin instances do not implement addProp');