Dart Programing - Bangla
  • Dart Programming - Bangla
  • Topics
    • Introduction
    • Install Android Studio and Dartpad
    • Install Visual Studio Code
    • First code in Dart
    • Comments
    • Variable
    • Data Types
    • String Interpolation
    • Constant Keywords
    • Async Programming in Dart
  • Reference
    • Resource
  • 👨‍🎓About
    • Author
Powered by GitBook
On this page
  • Literals
  • Various way to define String Literals
  • String Interpolation
  • String Interpolation নিয়ে বিস্তারিত ভিডিও নিচে দেয়া হলঃ
  1. Topics

String Interpolation

এই পর্বে আমরা Dart Programming Language এর গুরুত্বপূর্ণ একটি Topic নিয়ে জানব সেটি হল String Interpolation. এইটা শিখার আগে আমরা Literals এবং Strings Literals নিয়ে জানব ।

Literals

মূলত Programing এর ভাষায় literals বলতে বুঝায় কোন Variable এর মধ্যে আমরা যেই value গুলা assign করি তাদের । নিচে কিছু উদাহরণ দেয়া হলঃ

// Literals Example
  var isOK = true;
  var x = 5;
  var n = "Md. Al-Amin";
  var d = 1.2;

Various way to define String Literals

  String s1 = 'Single String';
  String s2 = "Double String";
  
  String s3 = 'I don\'t want to eat.'; 
  
  String s4 = "I don't want to eat.";
  
  String s5 = 'This is a long String to check string literals.'
    'This is a long String to check string literals.'
    'This is a long String to check string literals.';

String Interpolation

মূলত কিভাবে String এর Interpolation হয় তা আমরা শিখব নিচের উদাহরণ থেকে ।

  // String Interpolation Examples
  
  String name = 'Md. Al-Amin';
  String message = 'My name is $name';
  
  print(message);
  
  print('My name is $name');
  
  print('Total Character: ${name.length}');
  
  var a = 5;
  var b = 10;
  
  print('The sum of $a and $b is: ${a+b}');
  
  
  print('Multiplication of $a and $b is = ${a * b}');

My name is Md. Al-Amin

My name is Md. Al-Amin

Total Character: 11

The sum of 5 and 10 is: 15

Multiplication of 5 and 10 is = 50

String Interpolation নিয়ে বিস্তারিত ভিডিও নিচে দেয়া হলঃ

অবশ্যই আপনার মুল্যবান মন্তব্য জানাতে ভুলবেন নাহ ।

PreviousData TypesNextConstant Keywords

Last updated 2 years ago

https://youtu.be/b2mjeTzQw28youtu.be
Literals & String Interpolations in Dart | 06 | Dart Tutorial for Flutter Application Development