Dart Basics
Fundamental Dart programming concepts including data types, variables, operators, and language features
33
Easy Questions
24
Medium Questions
1
Hard Questions
Easy Questions (33)
In flutter what is the use of hasCode , equal to operator (== operator)
flutter
What is the null coalescing operator ? Ans: '??' to provide "" as a default value.
View Details →Code
Difference between import ‘../../file_name.dart VS import ‘package:Name/folder_name/file_name.dart
dart
What is Annotations in flutter ? example it is resemble by “@” symbol
flutter
What is difference between using final vs get inside the class where to use which ?
View Details →Code
What is the difference between normal constructor vs Factory constructor proviide me with some real world example ?
View Details →Code
What is the use of static vs final vs const ? in flutter when to use which ?
flutter
View Details →Code
What is Dart and Why does Flutter use it?
dartflutterbasics
Differentiate between named parameters and positional parameters in Flutter
dartparametersfunctions
View Details →Code
What is the difference between dependencies and dev_dependencies in pubspec.yaml?
flutterdartpubspecdependenciespackages
View Details →Code
What is the difference between required, optional, and named parameters in Dart?
dartfunctionsparametersrequirednamed
View Details →Code
Medium Questions (24)
`Var A =0 ;` on pressing the button can we change `A=“name”;`?
View Details →Code
Why does `numbers.addAll(2)` throw a compilation error in Dart, and how do you correctly add multiple items to a List?
dart
View Details →Code
Describe about riverpod statemangement ? with some live examples and riverpod annotation use cases too ? also define the lifecycle of the riverpod ? also when we use riverpod annotation will the lifecycle is managed by automatically ?
stateriverpod
What is sound null safety?
dartnull-safetytype-system
Difference between string interpolation vs elvis operator vs force unwrap vs late init provide me with some example in flutter ?
dartnull-safetyoperatorsstring-interpolationelvis-operator
Does Flutter/Dart support interface classes? How do interfaces work in Dart?
dartinterfaceabstract-classimplementsoop
Dart & Flutter Control Flow and Conditional Rendering Techniques
dartfluttercontrol-flowconditional-renderingswitch
View Details →Code
Explain clearly about immutability vs mutability in flutter with some proper examples
dartflutterimmutabilitymutabilityconst
View Details →Code
Explain clearly about Deep Copy (Hard Copy) vs Shallow Copy (Soft Copy) in flutter with some proper examples
dartflutterdeep-copyshallow-copystate-management
View Details →Code
How to remove the duplicate items in the list without using any built in methods like (contains, toSet(), where, indexOf) in flutter with some proper examples
dartdsalistduplicatesalgorithm
View Details →Code
What is the difference between async and async* in Dart?
dartasyncstreamfuturegenerator
View Details →Code
Hard Questions (1)
What is the difference between Abstract Class vs Interface Class vs Final Class vs Sealed Class?
dartoopabstract-classinterfacefinal-class