I hereby claim:
- I am ihwanid on github.
- I am ihwanid (https://keybase.io/ihwanid) on keybase.
- I have a public key ASC2CF9mXFR2wuDupH3cLmZ4HmUcSTM9RHeMDfrgdOWTYAo
To claim this, I am signing this object:
| void main() { | |
| isOddOrEven(18); | |
| } | |
| void isOddOrEven(int number){ | |
| if(number % 2 == 0){ | |
| print("$number is even"); | |
| }else{ | |
| print("$number is odd"); | |
| } |
| void main() { | |
| List<int> primeNumber = [2,3,5,7]; | |
| primeNumber.addAll([11, 13, 17, 19]); | |
| primeNumber.add(23); | |
| print(primeNumber); | |
| //map | |
| var person = <String, dynamic>{ | |
| 'name' : 'Dewi', | |
| 'age' : 17, |
| void main() { | |
| final person = Person(name: 'Arin', height: 160.0, weight: 55.0); | |
| print(person.bmi); | |
| } | |
| mixin BMI{ | |
| double calculate(double height, double weight){ | |
| return weight / (height * height); | |
| } | |
| } |
| import 'dart:math'; | |
| void main() { | |
| final square = Square(side: 2.0); | |
| print(square.area); | |
| final circle = Circle(radius:14.0); | |
| printArea(circle); | |
| } |
| package com.example.myapplication | |
| import androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.content.Intent | |
| class SplashActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) |
I hereby claim:
To claim this, I am signing this object:
| try { | |
| val sendIntent = Intent().apply { | |
| action = Intent.ACTION_SEND | |
| putExtra(Intent.EXTRA_TEXT, "Hello Swapz") | |
| putExtra("jid", "${data.phone}@s.whatsapp.net") | |
| type = "text/plain" | |
| setPackage("com.whatsapp") | |
| } | |
| startActivity(sendIntent) | |
| }catch (e: Exception){ |
| // Hide the keyboard. | |
| val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager | |
| imm.hideSoftInputFromWindow(view.windowToken, 0) |
| import android.graphics.Color | |
| import android.graphics.drawable.ColorDrawable | |
| import android.graphics.drawable.GradientDrawable | |
| import android.graphics.drawable.ShapeDrawable | |
| import android.os.Build | |
| import android.text.Html | |
| import android.view.View | |
| import android.widget.ImageView | |
| import android.widget.TextView | |
| import androidx.cardview.widget.CardView |