getSubDomain method

  1. @override
String? getSubDomain()
override

It gets the sub domain

Implementation

@override
String? getSubDomain() {
  return html.window.location.host.split('.').length > 1 ? html.window.location.host.split('.')[0] : null;
}