LeafPattern.flat

Pattern[] flat(TypeInfo[] types...)

Returns a flat array containing just this pattern if it matches the types.

Parameters

typesThe TypeInfo of pattern types to include. If empty, includes this pattern.

Returns

An array containing this pattern if types match, otherwise empty.