add method

Danger<PropertyRoster<VT>, PropertyExceptionA> add(
  1. VT value
)

Implementation

Danger<PropertyRoster<VT>, PropertyExceptionA> add(VT value) {

    final log = Log(classLocation: runtimeType, functionLocation: 'add');

    final newValues = [
        ...values,
        value,
    ];

    final resultResult = result<VT>(newValues);
    log.add(resultResult);

    return Danger.fromDanger(resultResult, log);

}