Experimental: this API is experimental and might be changed or removed in the future.

TextField.hasFocus

切换到手册
public bool hasFocus ;

描述

如果文本字段具有焦点,则返回 true,否则返回 false。