from static method

Danger<Indent, CitrusSyntaxException> from(
  1. String whiteSpace
)

Implementation

static Danger<Indent, CitrusSyntaxException> from(String whiteSpace) {

    final log = Log(classLocation: Indent, functionLocation: 'from');

    final firstResult = SpaceCollection.from(whiteSpace);
    log.add(firstResult);
    if (firstResult is! Success<SpaceCollection, CitrusSyntaxException>) return Failure(firstResult.asException, log);

    final result = Indent(firstResult.wrapped);

    return Success(result, log);

}