genericConditional<T> function
Method util uses to return anything for conditional.
Implementation
T? genericConditional<T>({
required bool condition,
required T match,
T? notMatch,
}) {
return condition ? match : notMatch;
}