书栈网 · BookStack 本次搜索耗时 0.015 秒,为您找到 960 个相关结果.
  • Formatting code

    Formatting code Formatting code As Effective Dart says, when it comes to things like formatting, arguments about which is better are subjective and impossible to resolve. What...
  • dartdevc (dev JS)

    dartdevc: the Dart dev compiler More information dartdevc: the Dart dev compiler The Dart development compiler (dartdevc, also known as DDC) lets you run and debug your Dart w...
  • Final

    581 2019-12-15 《Dart by Example》
    Dart by Example: Final Dart by Example: Final Final objects are immutable main () { // final variables are single-assignment: final foo = "hello" ; ...
  • Switch

    643 2019-12-15 《Dart by Example》
    Dart by Example: Switch Dart by Example: Switch main () { // a typical switch statement var piece = 'knight' ; switch ( piece ) { case 'bishop' ...
  • Language cheatsheet

    Dart cheatsheet codelab String interpolation Code example Null-aware operators Code example Conditional property access Code example Collection literals Code example Arrow ...
  • Function Types

    609 2019-12-15 《Dart by Example》
    Dart by Example: Function Types Dart by Example: Function Types typedef bool Validator ( int n ); bool positive ( int n ) => n >= 0 ; bool lessThan100 ( int...
  • Optional Parameters

    665 2019-12-15 《Dart by Example》
    Dart by Example: Optional Parameters Dart by Example: Optional Parameters // an ordered optional parameter String yell ( String str , [ bool exclaim = false ]) { ...
  • Functions

    680 2019-12-15 《Dart by Example》
    Dart by Example: Functions Dart by Example: Functions // A simple function definition yell ( str ) => str . toUpperCase (); // Functions can have type annotations Li...
  • Variables

    583 2019-12-15 《Dart by Example》
    Dart by Example: Variables Dart by Example: Variables main () { // 'var' declares a variable. dartanalyzer infers the type. var a = "initial" ; print ( a ...