public static @NotNull State byBoolean(final boolean flag) {
      return flag ? TRUE : FALSE;
    }
Gets a state from a {@code boolean}.

@param flag the boolean
@return the state
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/format/TextDecoration.java