lateinit 延迟初始化

lateinit 延迟初始化
当遇见非 null 的变量时,可以使用 lateinit 来延迟初始化,从而使得 非 null 可以一开始被声明为 null



原文地址:https://www.cnblogs.com/alan6y/p/13622571.html