fromStr function

GraphAlign fromStr(
  1. String s
)

Implementation

GraphAlign fromStr(String s){
  s=s.toLowerCase();
  if(s=='utl'){
    return GraphAlign.utl;
  }
  if(s=='utr'){
    return GraphAlign.utr;
  }
  if(s=='dtl'){
    return GraphAlign.dtl;
  }
  if(s=='dtr'){
    return GraphAlign.dtr;
  }
  throw FlutterError('违法参数');
}