isBaseType static method

bool isBaseType(
  1. dynamic value
)

判断变量是否是基本数据类型

Implementation

static bool isBaseType(dynamic value) {
  return (value is num || value is String || value is bool);
}