GithubHelp home page GithubHelp logo

learndart's Introduction

前言

  Dart 作为开发 Flutter 应用的基础语言,对于开发 Flutter 应用你必须要学习 Dart 语言。其实,个人认为高级语言基本上都是大同小异,90% 是想通的,只有 10% 是此种语言的特性,需要重点学习。我个人认为,只要你有一门高级语言的基础,学习 Dart 语言其实是不难的。习惯上和**上多注意一点就 ok 了。😃😆

Dart 语言介绍

  Dart 是谷歌开发的计算机编程语言,后来被 Ecma (ECMA-408)认定为标准。它被用于web、服务器、移动应用和物联网等领域的开发。它是宽松开源许可证(修改的BSD证书)下的开源软件。

  Dart 是面向对象的、类定义的、单继承的语言。它的语法类似C语言,可以转译为JavaScript,支持接口(interfaces)、混入(mixins)、抽象类(abstract classes)、具体化泛型(reified generics)、可选类型(optional typing)和sound type system。

学习目录

Demo1 第一个程序
  • 第一个 Dart 程序
Demo2 入口函数
  • 入口方法
Demo3 基本类型
  • 类型判断
  • 布尔类型
  • 数值类型
  • 字符串类型
  • List集合类型
  • Maps类型
Demo4 运算符
  • 赋值运算符
  • 关系运算符
  • 逻辑运算符
  • 算术运算符
  • 类型转换
  • 条件表达式
Demo5
  • ++/ --
  • break/continue
  • do..while
  • for 循环
Demo6
  • forEach / Map / Where / any
  • List
  • Map
  • Set
Demo7
  • 方法定义
  • 方法传参、默认参数、可选参数
  • 箭头函数、函数相互调用
  • 匿名函数、自执行方法、方法的递归
  • 闭包
Demo8
  • 面向对象介绍以及 Dart 内置对象
  • 类里面的初始化列表
  • 自定义函数命名构造函数
  • 自定义类的默认构造函数
  • 自定义类和使用类
  • 把类抽成一个文件
  • 私有属性和私有方法
  • Dart 提供的 getter 和 setter 方法
Demo9
  • 对象操作符
  • 类的继承,简单继承
  • 类的继承,super 关键词使用,实例化子类给父类构造函数传参
  • super 的使用
  • 类的继承,实例化子类给命名构造函数传参
  • 类的继承,覆写父类方法
  • 类的静态成员和静态方法
Demo10
  • 抽象类
  • 多态
  • 接口
  • 接口,文件分离
Demo11
  • implements 实现多个接口
  • mixins
  • mixins 的类型
  • mixins 的练习
Demo12
  • 泛型,泛型方法
  • 泛型类
  • 泛型接口
Demo13
  • 导入自己本地库
  • 引入系统内置库
  • 导入系统内置库实现数据请求httpClient
  • Async 与 Await
  • 导入Pub包管理系统中的库
  • 库的重命名,解决冲突
  • 库部分导入
  • 延迟加载

learndart's People

Contributors

hanqigod avatar

Stargazers

 avatar RCC avatar  avatar 王树贤 avatar  avatar

Watchers

James Cloos avatar

Forkers

githubwxq maivl

learndart's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.