RpcApiVersion.parseVersion constructor

RpcApiVersion.parseVersion(
  1. String version
)

Implementation

factory RpcApiVersion.parseVersion(
  String version
) {
  final versions = version.split('.');
  return RpcApiVersion(
    int.parse(versions[0]),
    int.parse(versions[1]),
    int.parse(versions[2])
  );
}