isMobile property
bool
get
isMobile
只有移动端系统才为true(web 两者都不是)
Implementation
bool get isMobile => switch (this) {
AndroidPlatform() => true,
IosPlatform() => true,
_ => false
};
只有移动端系统才为true(web 两者都不是)
bool get isMobile => switch (this) {
AndroidPlatform() => true,
IosPlatform() => true,
_ => false
};