register static method
Registers the current tab / flutter instance.
Optionally a name
can be set which will be used
as localstorage identifier. The name
must be the same
for all instances of the flutter app.
Implementation
static void register([String name = 'tabs']) {
_name = name;
api.register(_name);
}