• Skip to primary navigation
  • Skip to content
  • Skip to footer
Welcome to the development world of chp Welcome to the development world of chp
  • 주제별 학습
  • 최근 글
  • 도서
  • 태그
    1. 홈
    2. 주제별 학습
    3. 프로그래밍 언어
    4. Dart
    5. Dart: 상수
    chp

    chp

    99점이 100점이 되기 위해 일을 더하는 개발자

    • South Korea
    • Website
    • GitHub

    Dart: 상수

    최대 1 분 소요

    목차

    • 개요
    • 예제

    레퍼런스

    개요

    • final
      • 런타임 상수
    • const
      • 빌드 타임 상수

    예제

    • 코드
      • void main() {
          const name = 'test';
          print(name);
        
          final now = DateTime.now();
          print(now);
        }
        
    • 실행 결과
      • test
        2024-06-07 17:00:27.968900
        

    태그: constant

    주제: Dart

    작성일: 2024-05-25

    공유하기

    X Facebook LinkedIn Bluesky
    이전: Dart: 파일 입/출력 다음: Dart: 컬렉션

    같은 주제의 글

    • Dart: 개요
    • Dart: 기본 자료형
    • Dart: 변수
    • Dart: 표준 입/출력
    Dart 전체 보기
    • 팔로우:
    • GitHub
    © 2013 - 2026 Welcome to the development world of chp. 제작 지원: Jekyll & Minimal Mistakes.