Future<RawDatagramSocket> bind(host, int port, { bool reuseAddress: true })

Creates a new raw datagram socket binding it to an address and port.

Source

external static Future<RawDatagramSocket> bind(
    host, int port, {bool reuseAddress: true});