isTruthy property

bool get isTruthy

Implementation

bool get isTruthy => switch (this) {
  final LuaObject obj => obj.isTruthy,
  false || null => false,
  _ => true,
};