VideoId.fromString constructor

VideoId.fromString(
  1. dynamic obj
)

Converts obj to a VideoId by calling .toString on that object. If it is already a VideoId, obj is returned

Implementation

factory VideoId.fromString(dynamic obj) {
  if (obj is VideoId) {
    return obj;
  }
  return VideoId(obj.toString());
}