getBindings static method

List<Binding>? getBindings(
  1. String? s, {
  2. Scope? scope,
})

Implementation

static List<Binding>? getBindings(String? s, {Scope? scope})
{
  if (s == null) return null;
  List<Binding>? bindings;
  List<String?>? bindingStrings = getBindingStrings(s);
  if (bindingStrings != null){
    for (String? binding in bindingStrings)
    {
      Binding? property = Binding.fromString(binding, bindingscope: scope);

      if (property != null)
      {
        bindings ??= [];
        bindings.add(property);
      }
    }}
  return bindings;
}