adding clipboard support for git clone dialog

@gaurave PR for https://github.com/dart-lang/spark/issues/2235 


Remove this function and call `_copyClipboard` directly from `_invoke`