create static method

TextParameter? create(
  1. String name,
  2. String? value
)

Creates a new TextParameter when the value is not null

Implementation

static TextParameter? create(String name, String? value) {
  if (value == null) {
    return null;
  }

  return TextParameter.value(name, value);
}