Your First Flutter App: Polishing the App
Apr 12 2022 · Dart 2.14.1, Flutter 2.5, Visual Studio Code
Part 1: Introduction to Dart
08. Utilize Type Inference
Heads up... You've reached locked video content where the transcript will be shown astext.
We’ve now reduced our
pointsForCurrentRound() to just a few lines of code. There’s another handy feature of Dart that we haven’t really taken advantage of yet. This is called type inference.
const var maximumScore = 100; var difference = (_model.target - _model.current).abs();
const maximumScore = 100;