isScalar function

bool isScalar(
  1. dynamic value
)

Implementation

bool isScalar(dynamic value) {
  if (value is String || value is num || value is bool) {
    return true;
  }
  return false;
}