isNullableType function

bool isNullableType(
  1. Type type
)

Checks if a type is nullable

Implementation

bool isNullableType(Type type) {
  final typeString = type.toString();
  return typeString.endsWith('?');
}