isPrimitiveValue function

bool isPrimitiveValue(
  1. dynamic value
)

Check if value is primitive type

Implementation

bool isPrimitiveValue(dynamic value) {
  return value == null || value is num || value is String || value is bool;
}