Action constructor Null safety

Action(
  1. {required String actionRef,
  2. required String actionIn,
  3. List<String>? actionOut}
)

Constructor sets the ref, in and out? properties

Implementation

Action({required String actionRef, required String actionIn, List<String>? actionOut}) {
  assert(actionRef.isNotEmpty && actionIn.isNotEmpty,
      "Action must have at least 'in' or 'ref' parameter set to be valid.");

  setRef(actionRef);
  setIn(actionIn);
  if (actionOut != null) setOut(actionOut);
}