[트러블슈팅] 14. Dart 내 as Int, toInt() 차이

문정준's avatar
May 26, 2025
[트러블슈팅] 14. Dart 내 as Int, toInt() 차이
  • 두 코드 간의 차이점?
int len = "ssar".length / 2 as int; int len2 = ("ssar".length / 2).toInt(); print(len); print(len2);
 

Solution

notion image
Share article

sxias